Class: Unitsdb::CLI
- Inherits:
-
Thor
- Object
- Thor
- Unitsdb::CLI
- Defined in:
- lib/unitsdb/cli.rb
Class Method Summary collapse
-
.exit_on_failure? ⇒ Boolean
Fix Thor deprecation warning.
Instance Method Summary collapse
Class Method Details
.exit_on_failure? ⇒ Boolean
Fix Thor deprecation warning
13 14 15 |
# File 'lib/unitsdb/cli.rb', line 13 def self.exit_on_failure? true end |
Instance Method Details
#check_si ⇒ Object
69 70 71 72 |
# File 'lib/unitsdb/cli.rb', line 69 def check_si require_relative "commands/check_si" Commands::CheckSi.new().run end |
#get(id) ⇒ Object
50 51 52 53 |
# File 'lib/unitsdb/cli.rb', line 50 def get(id) require_relative "commands/get" Commands::Get.new().get(id) end |