class MGit::HeadCommand

Public Instance Methods

arity() click to toggle source
# File lib/mgit/commands/head.rb, line 9
def arity
  [0, 0]
end
description() click to toggle source
# File lib/mgit/commands/head.rb, line 17
def description
  'show repository HEADs'
end
execute(_) click to toggle source
# File lib/mgit/commands/head.rb, line 3
def execute(_)
  t = []
  Registry.each { |repo| t << [repo.name, repo.current_branch, repo.current_head] }
  ptable t, columns: [24, nil, nil]
end
usage() click to toggle source
# File lib/mgit/commands/head.rb, line 13
def usage
  'head'
end