Class: MGit::TagsCommand
Instance Method Summary
collapse
Methods inherited from Command
#check_arity, execute, instance_each, list, register_alias, register_command
Methods included from Output
#perror, #pinfo, #ptable, #pwarn
Instance Method Details
#arity ⇒ Object
9
10
11
|
# File 'lib/mgit/commands/tags.rb', line 9
def arity
[0, 0]
end
|
#description ⇒ Object
17
18
19
|
# File 'lib/mgit/commands/tags.rb', line 17
def description
'display the latest tag in repository'
end
|
#execute(args) ⇒ Object
3
4
5
6
7
|
# File 'lib/mgit/commands/tags.rb', line 3
def execute(args)
t = []
Registry.chdir_each { |repo| t << [repo.name, *latest_tag] }
ptable t, :columns => [24, nil, nil]
end
|
#usage ⇒ Object
13
14
15
|
# File 'lib/mgit/commands/tags.rb', line 13
def usage
'tags'
end
|