class MGit::ListCommand
Public Instance Methods
arity()
click to toggle source
# File lib/mgit/commands/list.rb, line 9 def arity [nil, 0] end
description()
click to toggle source
# File lib/mgit/commands/list.rb, line 17 def description 'list all repositories' end
execute(_)
click to toggle source
# File lib/mgit/commands/list.rb, line 3 def execute(_) t = [] Registry.each { |repo| t << [repo.name, repo.path] } ptable t, columns: [24, nil] end
usage()
click to toggle source
# File lib/mgit/commands/list.rb, line 13 def usage 'list' end