class Toolshed::Commands::ListBranches
Public Class Methods
cli_options()
click to toggle source
# File lib/toolshed/commands/list_branches.rb, line 6 def self.cli_options { banner: 'Usage: list_branches [options]', options: { repository_name: { short_on: '-r', }, } } end
Public Instance Methods
execute(args, options = {})
click to toggle source
# File lib/toolshed/commands/list_branches.rb, line 17 def execute(args, options = {}) branch = Toolshed::Git::Branch.new branch.list Toolshed.die end