# frozen_string_literal: true require 'thor' module Dri module Commands class Publish < Thor namespace :publish desc 'report', 'Generate a report' method_option :dry_run, type: :boolean, desc: 'Generates a report locally' method_option :format, aliases: '-f', type: :string, default: "table", desc: 'Formats the report' method_option :actions, type: :boolean, desc: 'Updates actions on failures' method_option :feature_flags, type: :boolean, desc: 'Adds summary of feature flag changes' def report(*) if options[:help] invoke :help, ['report'] else require_relative 'publish/report' Dri::Commands::Publish::Report.new(options).execute end end end end end