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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afffc8182c660702d271faf5ab029bd370679441
|
4
|
+
data.tar.gz: a60ffa8861f7757be372e58968eb7d95842e1ed5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef8d79172c2451e6191ceda3ef4d488398c7360349d93d1550b93bf6a2535dff2fdaae816fed0f06275967d1738f8d0c67684d3bfe1b38130394497ce7dcce95
|
7
|
+
data.tar.gz: a00ffc2ea727f54676c8fd294a3005cf3c0cae57e06dd9aa009cf8ae9d5bf022f0558f5689dcc8abb52b9d2b84e705dccfdba5b34cb414e15867997412f9a7f7
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
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
|
-
|
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 '
|
20
|
+
desc 'config', 'Create config file for .tlf'
|
21
21
|
option :layout, required:true
|
22
|
-
def
|
23
|
-
print Thinreports::Template::CLI::Executor.new(get_report).
|
22
|
+
def config
|
23
|
+
print Thinreports::Template::CLI::Executor.new(get_report).config
|
24
24
|
end
|
25
25
|
|
26
26
|
no_commands {
|