Class: CmdTools::Application
- Inherits:
-
Thor
- Object
- Thor
- CmdTools::Application
- Extended by:
- RubyPatch::AutoLoad
- Defined in:
- lib/cmd_tools/application.rb
Instance Method Summary collapse
- #backup(*files) ⇒ Object
- #emacs_launch(*files) ⇒ Object
- #emacs_stop ⇒ Object
- #min_max ⇒ Object
- #trash(*files) ⇒ Object
- #version ⇒ Object
Instance Method Details
#backup(*files) ⇒ Object
21 22 23 |
# File 'lib/cmd_tools/application.rb', line 21 def backup(*files) puts ::CmdTools::Command::Backup.run(*files).join(" ") end |
#emacs_launch(*files) ⇒ Object
41 42 43 44 |
# File 'lib/cmd_tools/application.rb', line 41 def emacs_launch(*files) mode = ['mode'].to_sym ::CmdTools::Command::EmacsLaunch.run(mode, *files) end |
#emacs_stop ⇒ Object
47 48 49 |
# File 'lib/cmd_tools/application.rb', line 47 def emacs_stop ::CmdTools::Command::EmacsLaunch.stop end |
#min_max ⇒ Object
15 16 17 18 |
# File 'lib/cmd_tools/application.rb', line 15 def min_max() puts ::CmdTools::Command::MinMax.run($stdin.read, [:min_max_separator])\ .join([:field_separator]) end |