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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/genie +13 -0
  3. data/lib/genie/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e512fd7b375f6535605f49ada554b7ab27d206a4
4
- data.tar.gz: 9c43175e70299d10b63e1e303a934f7bb2d0c486
3
+ metadata.gz: 4fd014faa8a60cb5283d5baca1c89b478bdce77c
4
+ data.tar.gz: 848553145699a846efde97834a5174fb58d1abd1
5
5
  SHA512:
6
- metadata.gz: f02b8d100c80762689ca2f58ae8cdb19ce494604da4e96e951a1e5244b32faefd6e069913b0f7b0c9fa0f1566e3b044ea89b95936d51b081b4e1c466d2c329fd
7
- data.tar.gz: 6f7a36cc58dbf75bf31d364f60a5046d8324bc83c97fed431a209157e8984324abb75fbf63c1e0a47352224386fb265fe95f4e0ad16e4fa8cee58082081ccced
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
@@ -1,3 +1,3 @@
1
1
  module CommandGenie
2
- VERSION = '0.1.1'
2
+ VERSION = '0.2.0'
3
3
  end
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.1.1
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 00:00:00.000000000 Z
11
+ date: 2016-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander