Class: Michael::Commands::Repos

Inherits:
Thor
  • Object
show all
Defined in:
lib/michael/commands/repos.rb,
lib/michael/commands/repos/edit.rb,
lib/michael/commands/repos/pull_requests.rb

Defined Under Namespace

Classes: Edit, PullRequests

Instance Method Summary collapse

Instance Method Details

#editObject



13
14
15
16
17
18
19
20
# File 'lib/michael/commands/repos.rb', line 13

def edit(*)
  if options[:help]
    invoke :help, ['edit']
  else
    require_relative 'repos/edit'
    Michael::Commands::Repos::Edit.new(options).execute
  end
end

#prsObject



39
40
41
42
43
44
45
46
# File 'lib/michael/commands/repos.rb', line 39

def prs(*)
  if options[:help]
    invoke :help, ['prs']
  else
    require_relative 'repos/pull_requests'
    Michael::Commands::Repos::PullRequests.new(options).execute
  end
end