Class: MGit::VersionCommand
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
7
8
9
|
# File 'lib/mgit/commands/version.rb', line 7
def arity
[nil, 0]
end
|
#description ⇒ Object
15
16
17
|
# File 'lib/mgit/commands/version.rb', line 15
def description
'display mgit version'
end
|
#execute(args) ⇒ Object
3
4
5
|
# File 'lib/mgit/commands/version.rb', line 3
def execute(args)
pinfo "mgit version #{MGit::VERSION}"
end
|
#usage ⇒ Object
11
12
13
|
# File 'lib/mgit/commands/version.rb', line 11
def usage
'version'
end
|