thinreports-template-cli 0.1.0 → 0.2.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 440a9f031f9ab0ef9d6f6fdf45c7a35f438b8055
4
- data.tar.gz: 02cfb1280f33ddda03105ccb5cd0edb7c188c775
3
+ metadata.gz: afffc8182c660702d271faf5ab029bd370679441
4
+ data.tar.gz: a60ffa8861f7757be372e58968eb7d95842e1ed5
5
5
  SHA512:
6
- metadata.gz: e3c8b00c2f9cadc1991ad7ba6342532b564d44111dcd0be57504bc045e6d48e6934fe057bb8f19b84344ac787020d469423798682d2448dde80a6fe7e6f1cb66
7
- data.tar.gz: 7fb5f9bc4faa843204604393c77fde2f5e5dbf627c27b86d125092bf873bdd362cb9e2f49a4288e881555dd98194d44f41c3eaba6d823626bd30e560c8fee770
6
+ metadata.gz: ef8d79172c2451e6191ceda3ef4d488398c7360349d93d1550b93bf6a2535dff2fdaae816fed0f06275967d1738f8d0c67684d3bfe1b38130394497ce7dcce95
7
+ data.tar.gz: a00ffc2ea727f54676c8fd294a3005cf3c0cae57e06dd9aa009cf8ae9d5bf022f0558f5689dcc8abb52b9d2b84e705dccfdba5b34cb414e15867997412f9a7f7
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Thinreports::Template::Cli
1
+ # thinreports-template-cli
2
2
 
3
3
  ## Installation
4
4
 
@@ -18,15 +18,33 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
+ ```bash
22
+ $ thinreports-template-cli help
23
+ Commands:
24
+ thinreports-template-cli config --layout=LAYOUT # Create config file for .tlf
25
+ thinreports-template-cli generate --layout=LAYOUT # Generate a PDF file from .tlf to stdout
26
+ thinreports-template-cli help [COMMAND] # Describe available commands or one specific command
27
+ thinreports-template-cli info --layout=LAYOUT # Display information for .tlf
28
+ ```
29
+
21
30
  ```bash
22
31
  $ thinreports-template-cli info --layout=~/template.tlf
23
- $ thinreports-template-cli init --layout=~/template.tlf > config.yml
32
+ ```
33
+
34
+ ```bash
35
+ $ thinreports-template-cli config --layout=~/template.tlf > config.yml
24
36
  $ cat ~/config.yml
25
37
  ---
26
38
  name: Taro Tottori
27
39
  item: Toripy Plush Toy
28
40
  price: 2980
41
+ ```
42
+
43
+ ```bash
29
44
  $ thinreports-template-cli generate --layout=~/template.tlf --config=~/config.yml > example.pdf
45
+ ```
46
+
47
+ ```bash
30
48
  $ thinreports-template-cli generate --layout=~/template.tlf --config=~/config.yml | lpr -P ApeosPort_V_C3375__aa_bb_cc_
31
49
  ```
32
50
 
@@ -17,10 +17,10 @@ module Thinreports; module Template; module CLI; class Commands < Thor
17
17
  print Thinreports::Template::CLI::Executor.new(get_report, get_config).info
18
18
  end
19
19
 
20
- desc 'init', 'Create config file for .tlf'
20
+ desc 'config', 'Create config file for .tlf'
21
21
  option :layout, required:true
22
- def init
23
- print Thinreports::Template::CLI::Executor.new(get_report).init
22
+ def config
23
+ print Thinreports::Template::CLI::Executor.new(get_report).config
24
24
  end
25
25
 
26
26
  no_commands {
@@ -41,7 +41,7 @@ module Thinreports; module Template; module CLI; class Executor
41
41
  })
42
42
  end
43
43
 
44
- def init
44
+ def config
45
45
  @config = {}
46
46
  @report.default_layout.format.shapes.values.map do |shape|
47
47
  @config[shape.id] = shape.value
@@ -1,3 +1,3 @@
1
1
  module Thinreports; module Template; module CLI
2
- VERSION = '0.1.0'
2
+ VERSION = '0.2.0'
3
3
  end; end; end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thinreports-template-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - mh61503891