Class: Pike13::CLI::Commands::Account::Person

Inherits:
Base
  • Object
show all
Defined in:
lib/pike13/cli/commands/account/person.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

format_options, handle_argument_error, printable_commands

Methods included from ThorNestedSubcommand

included

Class Method Details

.base_usageObject

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

#listObject



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