simple_commander 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/simple_commander +6 -23
- data/feature.list +4 -0
- data/gem.fish +2 -0
- data/lib/simple_commander.rb +1 -0
- data/lib/simple_commander/config.yml +1 -1
- data/lib/simple_commander/version.rb +1 -1
- metadata +3 -3
- data/bin/config.yml +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bbf86cc0372188d580bf80e84a32ae070322013
|
4
|
+
data.tar.gz: b96be38b0c451c255db5d4f42c689343535a623c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c31cc37d9eab8defc85e6862ff10f007ea1004301f398197013a47f7c9e0de8665c099cc4e0235ac3851fef01d65c9953ebea94ce134ab33b2d3ad7ec69fd30
|
7
|
+
data.tar.gz: 93cf2e20059ac74a336fc7c5cabfc208affc4e42b77486ea136479da847046fdf38b667e5ebe17a7e817570875882812407e6c0d734eec311feadcde1ffd8e28
|
data/bin/simple_commander
CHANGED
@@ -14,7 +14,8 @@ command :init do
|
|
14
14
|
description 'Add this folder to the simple commander path as the default folder for scripts'
|
15
15
|
|
16
16
|
action do |args, options|
|
17
|
-
SimpleCommander::CLI.
|
17
|
+
cli = SimpleCommander::CLI.new
|
18
|
+
cli.init
|
18
19
|
end
|
19
20
|
end
|
20
21
|
|
@@ -23,33 +24,15 @@ command 'show config' do
|
|
23
24
|
description 'show the current configuration'
|
24
25
|
|
25
26
|
action do |args, options|
|
26
|
-
SimpleCommander::CLI.
|
27
|
+
cli = SimpleCommander::CLI.new
|
28
|
+
cli.show_config
|
27
29
|
end
|
28
30
|
end
|
29
31
|
|
30
32
|
command :new do
|
31
33
|
action do |args, options|
|
32
|
-
SimpleCommander::CLI.new
|
33
|
-
|
34
|
-
yml = YAML.load_file(config_file)
|
35
|
-
sc_folder = yml[:path]
|
36
|
-
temp_folder = "#{File.dirname(__FILE__)}/"
|
37
|
-
s_path = "#{sc_folder}/#{args[0]}"
|
38
|
-
if !sc_folder
|
39
|
-
say <<-END
|
40
|
-
You need to set a path to commander
|
41
|
-
use simple_commander init <path> or cd to
|
42
|
-
the folder you want and just simple_commander init
|
43
|
-
END
|
44
|
-
return
|
45
|
-
end
|
46
|
-
if File.directory?(s_path)
|
47
|
-
say "The script #{args[0]} already exist!"
|
48
|
-
return
|
49
|
-
end
|
50
|
-
mkdir s_path
|
51
|
-
mkdir "#{s_path}/bin"
|
52
|
-
mkdir "#{s_path}/spec"
|
34
|
+
cli = SimpleCommander::CLI.new
|
35
|
+
cli.new(args[0])
|
53
36
|
end
|
54
37
|
end
|
55
38
|
|
data/feature.list
ADDED
data/gem.fish
ADDED
data/lib/simple_commander.rb
CHANGED
@@ -26,6 +26,7 @@ require 'simple_commander/version'
|
|
26
26
|
require 'simple_commander/blank'
|
27
27
|
require 'simple_commander/user_interaction'
|
28
28
|
require 'simple_commander/core_ext'
|
29
|
+
require 'simple_commander/cli'
|
29
30
|
require 'simple_commander/runner.rb'
|
30
31
|
require 'simple_commander/command'
|
31
32
|
require 'simple_commander/help_formatters'
|
@@ -1,2 +1,2 @@
|
|
1
1
|
---
|
2
|
-
:path: "/Users/marcell/Documents/github/simple_commander
|
2
|
+
:path: "/Users/marcell/Documents/github/simple_commander"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_commander
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcell Monteiro Cruz
|
@@ -84,7 +84,6 @@ description:
|
|
84
84
|
email:
|
85
85
|
- 0000marcell@gmail.com
|
86
86
|
executables:
|
87
|
-
- config.yml
|
88
87
|
- simple_commander
|
89
88
|
extensions: []
|
90
89
|
extra_rdoc_files: []
|
@@ -100,7 +99,6 @@ files:
|
|
100
99
|
- Manifest
|
101
100
|
- README.md
|
102
101
|
- Rakefile
|
103
|
-
- bin/config.yml
|
104
102
|
- bin/simple_commander
|
105
103
|
- config.yml
|
106
104
|
- coverage/.last_run.json
|
@@ -108,6 +106,8 @@ files:
|
|
108
106
|
- coverage/.resultset.json.lock
|
109
107
|
- dir_glob.rb
|
110
108
|
- ember_c
|
109
|
+
- feature.list
|
110
|
+
- gem.fish
|
111
111
|
- helper.rb
|
112
112
|
- helpers/http_helper.rb
|
113
113
|
- ideal_spec.rb
|
data/bin/config.yml
DELETED