Class: SmilyCli::BaseCommand

Inherits:
Thor
  • Object
show all
Defined in:
lib/smily_cli/base_command.rb

Overview

Common behavior shared by every Thor command class in the CLI: building the Context/Client from resolved options, rendering Results in the chosen format, reading --data payloads, and printing status/errors on the right stream (data on stdout, everything else on stderr).

Class Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Make Thor exit non-zero on its own argument errors.

Returns:

  • (Boolean)


13
14
15
# File 'lib/smily_cli/base_command.rb', line 13

def self.exit_on_failure?
  true
end