Class: GitTopic::Commands::List

Inherits:
Object
  • Object
show all
Includes:
Term::ANSIColor
Defined in:
lib/git_topic/commands/list.rb

Overview

list command shows summarized topic information

Defined Under Namespace

Classes: Branch

Instance Method Summary collapse

Instance Method Details

#executeObject



10
11
12
13
14
# File 'lib/git_topic/commands/list.rb', line 10

def execute
  branches, current_branch = parse_branches
  print_header(branches.first)
  print_contents(branches, current_branch)
end