Class: AstroSubframeOrganizer::Commands::Run

Inherits:
Dry::CLI::Command
  • Object
show all
Includes:
SharedOptions
Defined in:
lib/astro_subframe_organizer/commands/run.rb

Instance Method Summary collapse

Methods included from SharedOptions

included, #setup

Instance Method Details

#call(**options) ⇒ Object

rubocop:enable Layout/LineLength



22
23
24
25
# File 'lib/astro_subframe_organizer/commands/run.rb', line 22

def call(**options)
  setup(**options.slice(:config, :verbose, :skip_confirm))
  AstroSubframeOrganizer.run(dry_run: options[:dry_run])
end