Class: PivoFlow::Cli
Instance Method Summary collapse
- #go! ⇒ Object
-
#initialize(*args) ⇒ Cli
constructor
A new instance of Cli.
Methods included from State
current_branch_name, current_story_id, current_story_id_file_path, story_id_tmp_path
Constructor Details
#initialize(*args) ⇒ Cli
Returns a new instance of Cli.
5 6 7 |
# File 'lib/pivo_flow/cli.rb', line 5 def initialize *args @args = args end |
Instance Method Details
#go! ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/pivo_flow/cli.rb', line 9 def go! Signal.trap(2) { puts "\nkkthxbye!" return 0 } begin return parse_argv(@args) rescue *PivoFlow::Errors.exceptions => e puts "[ERROR] #{e}" return 1 end end |