Class: Pike13::CLI::Commands::Account::Person
- Defined in:
- lib/pike13/cli/commands/account/person.rb
Class Method Summary collapse
-
.base_usage ⇒ Object
Override the command name display to use “people” instead of “person”.
Instance Method Summary collapse
Methods inherited from Base
format_options, handle_argument_error, printable_commands
Methods included from ThorNestedSubcommand
Class Method Details
.base_usage ⇒ Object
Override the command name display to use “people” instead of “person”
9 10 11 |
# File 'lib/pike13/cli/commands/account/person.rb', line 9 def self.base_usage "account people" end |
Instance Method Details
#list ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/pike13/cli/commands/account/person.rb', line 14 def list handle_error do result = with_progress("Fetching people") do Pike13::Account::Person.all end output(result) end end |