command-genie 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/genie +13 -0
- data/lib/genie/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fd014faa8a60cb5283d5baca1c89b478bdce77c
|
4
|
+
data.tar.gz: 848553145699a846efde97834a5174fb58d1abd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0299a4b34c7d98882c2e3e170d4dd85ec4461383fccb36edbfb85ae2498c782f410c3a63d3b4d4d5712fb08be3ee9559f320f83ec08da7844cf5b6e030f22137
|
7
|
+
data.tar.gz: 3e1dd994a869d04e433a6ae7f57fae732ac79644517bd5a4cf73265d370a48392b1846da88918973f34017f98af170852fcdb20a81bad6f82d1002dd45ccfd8d
|
data/bin/genie
CHANGED
@@ -116,6 +116,19 @@ if script_name != APP_NAME
|
|
116
116
|
end
|
117
117
|
end
|
118
118
|
end
|
119
|
+
command :edit do |c|
|
120
|
+
c.syntax = "#{script_name}"
|
121
|
+
c.summary = "Edit the command's configuration file #{cmd_config_path}"
|
122
|
+
c.description = c.summary
|
123
|
+
c.example 'Edit command configuration file for ', "$ #{script_name}"
|
124
|
+
c.action do |args, options|
|
125
|
+
if File.file? cmd_config_path
|
126
|
+
`open #{cmd_config_path}`
|
127
|
+
else
|
128
|
+
say_error "No configuration file found at `#{cmd_config_path}`."
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
119
132
|
end
|
120
133
|
|
121
134
|
if script_name == APP_NAME
|
data/lib/genie/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: command-genie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hwee-Boon Yar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commander
|