Class: Unitsdb::Commands::Thor

Inherits:
Thor
  • Object
show all
Defined in:
lib/unitsdb/commands/thor.rb

Overview

Base class for every Thor-based CLI surface in the gem. Owns the shared --trace option, the exit_on_failure? policy, the run_command dispatch helper, and the single error handler (handle_error). Subclasses inherit these and provide only their own desc/option/subcommand declarations.

Class Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/unitsdb/commands/thor.rb', line 16

def self.exit_on_failure?
  true
end