Class: Unitsdb::Commands::Thor
- Inherits:
-
Thor
- Object
- Thor
- Unitsdb::Commands::Thor
- 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.
Direct Known Subclasses
Unitsdb::Cli, ModifyCommand, QudtCommand, UcumCommand, ValidateCommand
Class Method Summary collapse
Class Method Details
.exit_on_failure? ⇒ Boolean
16 17 18 |
# File 'lib/unitsdb/commands/thor.rb', line 16 def self.exit_on_failure? true end |