Class: Vivlio::Starter::CLI::SamovarCommands::DeleteCommand

Inherits:
Samovar::Command
  • Object
show all
Defined in:
lib/vivlio/starter/cli/samovar/delete_command.rb

Overview

delete コマンドの Samovar 実装

Instance Method Summary collapse

Instance Method Details

#callObject



41
42
43
44
45
46
47
48
49
50
51
# File 'lib/vivlio/starter/cli/samovar/delete_command.rb', line 41

def call
  return print_usage if options[:help]

  DeleteCommands::DeleteCommandExecutor.new(options, target_args).call
  0
rescue SystemExit => e
  raise e
rescue StandardError => e
  common.log_error("delete コマンド実行中にエラー: #{e.message}")
  1
end