Class: Worque::CLI
- Inherits:
-
Thor
- Object
- Thor
- Worque::CLI
- Defined in:
- lib/worque/cli.rb
Instance Method Summary collapse
Instance Method Details
#push ⇒ Object
36 37 38 39 |
# File 'lib/worque/cli.rb', line 36 def push default_opts = Worque::DefaultConfig.load!.data $stdout.puts Worque::Command::Push::Action.run(default_opts.merge ) end |
#todo ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/worque/cli.rb', line 19 def todo begin default_opts = Worque::DefaultConfig.load!.data result = Worque::Command::Todo::Action.run(default_opts.merge ) rescue InvalidPath => e $stderr.puts e. end $stdout.puts result end |