Class: Worque::CLI
- Inherits:
-
Thor
- Object
- Thor
- Worque::CLI
- Defined in:
- lib/worque/cli.rb
Instance Method Summary collapse
Instance Method Details
#push ⇒ Object
37 38 39 40 |
# File 'lib/worque/cli.rb', line 37 def push default_opts = Worque::DefaultConfig.load!.data $stdout.puts Worque::Command::Push::Action.run(default_opts.merge ) end |
#todo ⇒ Object
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/worque/cli.rb', line 20 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 |