cmd_tools 3.1.0 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/cmd_tools +1 -1
- data/lib/cmd_tools/{runner.rb → application.rb} +5 -5
- data/lib/cmd_tools/{command → commands}/backup.rb +1 -1
- data/lib/cmd_tools/{command → commands}/emacs_launch.rb +1 -1
- data/lib/cmd_tools/{command → commands}/trash.rb +1 -1
- data/lib/cmd_tools/{command.rb → commands.rb} +1 -1
- data/lib/cmd_tools/version.rb +1 -1
- metadata +8 -8
data/bin/cmd_tools
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
require 'thor'
|
2
2
|
|
3
|
-
class ::CmdTools::
|
3
|
+
class ::CmdTools::Application < Thor
|
4
4
|
require 'ruby_patch'
|
5
5
|
extend ::RubyPatch::AutoLoad
|
6
6
|
|
7
7
|
desc "backup FILE1 FILE2 ...", "Backup files and directories."
|
8
8
|
def backup(*files)
|
9
|
-
puts ::CmdTools::
|
9
|
+
puts ::CmdTools::Commands::Backup.run(*files).join("\t")
|
10
10
|
end
|
11
11
|
|
12
12
|
desc "trash FILE1 FILE2 ...", "Move files and directories to ~/.myTrash"
|
13
13
|
def trash(*files)
|
14
|
-
puts ::CmdTools::
|
14
|
+
puts ::CmdTools::Commands::Trash.run(*files).join("\t")
|
15
15
|
end
|
16
16
|
|
17
17
|
desc "emacs_launch FILE1 FILE2 ...", "Launch emacs in MODE mode."
|
@@ -27,11 +27,11 @@ Launch emacs in (G|C)UI mode.
|
|
27
27
|
method_option :mode, type: :string, required: true, desc: "MODE should be 'gui' or 'cui'."
|
28
28
|
def emacs_launch(*files)
|
29
29
|
mode = options['mode'].to_sym
|
30
|
-
::CmdTools::
|
30
|
+
::CmdTools::Commands::EmacsLaunch.run(mode, *files)
|
31
31
|
end
|
32
32
|
|
33
33
|
desc "emacs_stop", "Stop emacs daemon."
|
34
34
|
def emacs_stop
|
35
|
-
::CmdTools::
|
35
|
+
::CmdTools::Commands::EmacsLaunch.stop
|
36
36
|
end
|
37
37
|
end
|
data/lib/cmd_tools/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cmd_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-10-08 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ruby_patch
|
16
|
-
requirement: &
|
16
|
+
requirement: &87071520 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0.3'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *87071520
|
25
25
|
description: ! 'Command line tools. Please type
|
26
26
|
|
27
27
|
|
@@ -41,12 +41,12 @@ files:
|
|
41
41
|
- bin/cmd_tools
|
42
42
|
- cmd_tools.gemspec
|
43
43
|
- lib/cmd_tools.rb
|
44
|
-
- lib/cmd_tools/
|
45
|
-
- lib/cmd_tools/
|
46
|
-
- lib/cmd_tools/
|
47
|
-
- lib/cmd_tools/
|
44
|
+
- lib/cmd_tools/application.rb
|
45
|
+
- lib/cmd_tools/commands.rb
|
46
|
+
- lib/cmd_tools/commands/backup.rb
|
47
|
+
- lib/cmd_tools/commands/emacs_launch.rb
|
48
|
+
- lib/cmd_tools/commands/trash.rb
|
48
49
|
- lib/cmd_tools/config.rb
|
49
|
-
- lib/cmd_tools/runner.rb
|
50
50
|
- lib/cmd_tools/version.rb
|
51
51
|
homepage:
|
52
52
|
licenses: []
|