Class: GitTopic::Cli
- Inherits:
-
Thor
- Object
- Thor
- GitTopic::Cli
- Defined in:
- lib/git_topic/cli.rb
Overview
CLI command entry point
Instance Method Summary collapse
- #add(topic_name) ⇒ Object
- #edit(branch_name = nil) ⇒ Object
- #list ⇒ Object
- #publish(branch_name) ⇒ Object
- #show(branch_name = nil) ⇒ Object
- #start(topic_name) ⇒ Object
Instance Method Details
#add(topic_name) ⇒ Object
32 33 34 35 |
# File 'lib/git_topic/cli.rb', line 32 def add(topic_name) puts "add #{topic_name}" raise 'not implemented' end |
#edit(branch_name = nil) ⇒ Object
20 21 22 23 |
# File 'lib/git_topic/cli.rb', line 20 def edit(branch_name = nil) command = GitTopic::Commands::Edit.new branch_name command.execute end |
#list ⇒ Object
14 15 16 17 |
# File 'lib/git_topic/cli.rb', line 14 def list command = GitTopic::Commands::List.new command.execute end |
#publish(branch_name) ⇒ Object
44 45 46 47 |
# File 'lib/git_topic/cli.rb', line 44 def publish(branch_name) puts "publish #{branch_name}" raise 'not implemented' end |
#show(branch_name = nil) ⇒ Object
26 27 28 29 |
# File 'lib/git_topic/cli.rb', line 26 def show(branch_name = nil) command = GitTopic::Commands::Show.new branch_name command.execute end |
#start(topic_name) ⇒ Object
38 39 40 41 |
# File 'lib/git_topic/cli.rb', line 38 def start(topic_name) puts "start #{topic_name}" raise 'not implemented' end |