kojo 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/bin/{kojo-run.rb → kojo-config.rb} +6 -6
- data/bin/{kojo-compile.rb → kojo-dir.rb} +5 -5
- data/bin/{kojo-generate.rb → kojo-file.rb} +6 -6
- data/lib/kojo/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ceddafefd50a366d970ffa2da55908736609f5d99bd05510b68ebc40e171e493
|
4
|
+
data.tar.gz: a373ff818df798d086da4d9dac7b34fb571f0cf4f51a9115ba6e81cb0ff6dfaf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d606609cc01e294f8af9d187fc5e52496551fa43d56e91cd5c610a5477c5b91503ffd3107599a409e3ff68a1080e8037178131cb79bfd8a793586075e9e9827b
|
7
|
+
data.tar.gz: f58e33f3d9493f9143c299d17241acec28db267765337e94d2d6cc979000e711f95dc81c6f954bffc4b21048c4e81f6502ad3af0471f3a9c1c536583a901458d
|
data/README.md
CHANGED
@@ -97,7 +97,7 @@ output:
|
|
97
97
|
|
98
98
|
### Compile an Entire Folder
|
99
99
|
|
100
|
-
![kojo](images/features-
|
100
|
+
![kojo](images/features-dir.svg)
|
101
101
|
|
102
102
|
Process a folder containing templates and `@imports`, and generate a mirror
|
103
103
|
output folder, with all the variables and `@imports` evaluated.
|
@@ -1,18 +1,18 @@
|
|
1
1
|
require 'kojo'
|
2
2
|
require 'fileutils'
|
3
3
|
|
4
|
-
help "
|
4
|
+
help "Generate based on instructions from a config file"
|
5
5
|
|
6
|
-
usage "kojo
|
7
|
-
usage "kojo
|
6
|
+
usage "kojo config CONFIG [--save DIR] [ARGS...]"
|
7
|
+
usage "kojo config (-h|--help)"
|
8
8
|
|
9
9
|
option "-s --save DIR", "Save output to directory instead of printing"
|
10
10
|
|
11
11
|
param "ARGS", "Optional key=value pairs"
|
12
12
|
|
13
|
-
example "kojo
|
14
|
-
example "kojo
|
15
|
-
example "kojo
|
13
|
+
example "kojo config config.yml"
|
14
|
+
example "kojo config config.yml --save output"
|
15
|
+
example "kojo config config.yml -s output scale=3"
|
16
16
|
|
17
17
|
action do |args|
|
18
18
|
gen = Kojo::Generator.new args['CONFIG']
|
@@ -2,17 +2,17 @@ require 'kojo'
|
|
2
2
|
|
3
3
|
help "Compile a folder of templates to a similar output folder"
|
4
4
|
|
5
|
-
usage "kojo
|
6
|
-
usage "kojo
|
5
|
+
usage "kojo dir INDIR [--save DIR --import DIR] [ARGS...]"
|
6
|
+
usage "kojo dir (-h|--help)"
|
7
7
|
|
8
8
|
option "-s --save DIR", "Save output to directory instead of printing"
|
9
9
|
option "-i --import DIR", "Specify base directory for @import directives"
|
10
10
|
|
11
11
|
param "ARGS", "Optional key=value pairs"
|
12
12
|
|
13
|
-
example "kojo
|
14
|
-
example "kojo
|
15
|
-
example "kojo
|
13
|
+
example "kojo dir indir"
|
14
|
+
example "kojo dir in --save out env=production"
|
15
|
+
example "kojo dir in --save out --import snippets env=production"
|
16
16
|
|
17
17
|
action do |args|
|
18
18
|
opts = args['ARGS'].args_to_hash
|
@@ -1,17 +1,17 @@
|
|
1
1
|
require 'kojo'
|
2
2
|
|
3
|
-
help "
|
3
|
+
help "Compile a file from a template"
|
4
4
|
|
5
|
-
usage "kojo
|
6
|
-
usage "kojo
|
5
|
+
usage "kojo file INFILE [--save FILE] [ARGS...]"
|
6
|
+
usage "kojo file (-h|--help)"
|
7
7
|
|
8
8
|
option "-s --save FILE", "Save to file instead of printing"
|
9
9
|
|
10
10
|
param "ARGS", "Optional key=value pairs"
|
11
11
|
|
12
|
-
example "kojo
|
13
|
-
example "kojo
|
14
|
-
example "kojo
|
12
|
+
example "kojo file main.yml"
|
13
|
+
example "kojo file main.yml --save out.yml"
|
14
|
+
example "kojo file main.yml -s out.yml app=lause"
|
15
15
|
|
16
16
|
action do |args|
|
17
17
|
opts = args['ARGS'].args_to_hash
|
data/lib/kojo/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kojo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danny Ben Shitrit
|
@@ -113,17 +113,17 @@ description: Generate configuration files from templates, using variables and de
|
|
113
113
|
email: db@dannyben.com
|
114
114
|
executables:
|
115
115
|
- kojo
|
116
|
-
- kojo-
|
117
|
-
- kojo-
|
118
|
-
- kojo-
|
116
|
+
- kojo-config.rb
|
117
|
+
- kojo-dir.rb
|
118
|
+
- kojo-file.rb
|
119
119
|
extensions: []
|
120
120
|
extra_rdoc_files: []
|
121
121
|
files:
|
122
122
|
- README.md
|
123
123
|
- bin/kojo
|
124
|
-
- bin/kojo-
|
125
|
-
- bin/kojo-
|
126
|
-
- bin/kojo-
|
124
|
+
- bin/kojo-config.rb
|
125
|
+
- bin/kojo-dir.rb
|
126
|
+
- bin/kojo-file.rb
|
127
127
|
- lib/kojo.rb
|
128
128
|
- lib/kojo/extensions/array.rb
|
129
129
|
- lib/kojo/extensions/hash.rb
|