Class: MGit::StatusCommand
Instance Method Summary
collapse
Methods inherited from Command
execute, instance_each, list, register_alias, register_command
Methods included from Output
#perror, #pinfo, #ptable, #pwarn
Instance Method Details
#arity ⇒ Object
11
12
13
|
# File 'lib/mgit/commands/status.rb', line 11
def arity
[nil, 0]
end
|
#description ⇒ Object
19
20
21
|
# File 'lib/mgit/commands/status.rb', line 19
def description
'display status for each repositories'
end
|
#execute(args) ⇒ Object
5
6
7
8
9
|
# File 'lib/mgit/commands/status.rb', line 5
def execute(args)
t = []
Registry.chdir_each { |repo| t << [repo.name, repo.current_branch, flags(repo).to_a.join(', ')] }
ptable t, :columns => [24, nil, nil]
end
|
#usage ⇒ Object
15
16
17
|
# File 'lib/mgit/commands/status.rb', line 15
def usage
'status'
end
|