Class: CircleCI::CLI::Command::ProjectsCommand

Inherits:
BaseCommand
  • Object
show all
Defined in:
lib/circleci/cli/command/projects_command.rb

Class Method Summary collapse

Methods inherited from BaseCommand

build_number, project_name, reponame, setup_token, should_be_pretty

Class Method Details

.run(options) ⇒ Object



8
9
10
11
# File 'lib/circleci/cli/command/projects_command.rb', line 8

def run(options)
  setup_token
  say Printer::ProjectPrinter.new(Response::Project.all, pretty: should_be_pretty(options)).to_s
end