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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c58d14e183cbe6bbad4dc235351722f1fc8da21c04ccdba6df2a4e31e3c8afd7
4
- data.tar.gz: dd80f41a56a7ee19c7dd4d3d66f3683607e071217c5177a6089c99bf9d256983
3
+ metadata.gz: ceddafefd50a366d970ffa2da55908736609f5d99bd05510b68ebc40e171e493
4
+ data.tar.gz: a373ff818df798d086da4d9dac7b34fb571f0cf4f51a9115ba6e81cb0ff6dfaf
5
5
  SHA512:
6
- metadata.gz: e0035c2e9229b9d5abe09ce695c12aac1a6591242bb516379aede669fce7319fd4c74a000cf40410cb9edbf86855644e11b3c09fe299a4bd466d693a464eb772
7
- data.tar.gz: f87db6ee6fddc7efce65cba34e5d6513f6c4a553c1c417a03c7ec7119df2fa0e0e57133ee761ac277381ca1c4144c66f9a615e8edb05122b3da3885319fc58cf
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-compile.svg)
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 "Run and process a config file"
4
+ help "Generate based on instructions from a config file"
5
5
 
6
- usage "kojo run CONFIG [--save DIR] [ARGS...]"
7
- usage "kojo run (-h|--help)"
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 run config.yml"
14
- example "kojo run config.yml --save output"
15
- example "kojo run config.yml -s output scale=3"
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 compile INDIR [--save DIR --import DIR] [ARGS...]"
6
- usage "kojo compile (-h|--help)"
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 compile indir"
14
- example "kojo compile in --save out env=production"
15
- example "kojo compile in --save out --import snippets env=production"
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 "Generate a file from a template"
3
+ help "Compile a file from a template"
4
4
 
5
- usage "kojo generate INFILE [--save FILE] [ARGS...]"
6
- usage "kojo generate (-h|--help)"
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 generate main.yml"
13
- example "kojo generate main.yml --save out.yml"
14
- example "kojo generate main.yml -s out.yml app=lause"
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
@@ -1,3 +1,3 @@
1
1
  module Kojo
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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-compile.rb
117
- - kojo-generate.rb
118
- - kojo-run.rb
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-compile.rb
125
- - bin/kojo-generate.rb
126
- - bin/kojo-run.rb
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