shellfie-cli 2.0.0 → 2.0.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.
- package/dist/cli.js +16 -1
- package/dist/cli.js.map +1 -1
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -11,7 +11,7 @@ const createParser = () => yargs_1.default
|
|
|
11
11
|
.scriptName('shellfie')
|
|
12
12
|
.usage('$0 [options] [file]')
|
|
13
13
|
.usage('')
|
|
14
|
-
.usage('
|
|
14
|
+
.usage('Terminal output to beautiful SVGs')
|
|
15
15
|
.option('output', {
|
|
16
16
|
alias: 'o',
|
|
17
17
|
type: 'string',
|
|
@@ -23,6 +23,7 @@ const createParser = () => yargs_1.default
|
|
|
23
23
|
describe: 'Output filename (without extension)',
|
|
24
24
|
})
|
|
25
25
|
.option('stdout', {
|
|
26
|
+
alias: 's',
|
|
26
27
|
type: 'boolean',
|
|
27
28
|
describe: 'Output SVG to stdout instead of file',
|
|
28
29
|
default: false,
|
|
@@ -41,6 +42,7 @@ const createParser = () => yargs_1.default
|
|
|
41
42
|
describe: 'Color theme',
|
|
42
43
|
})
|
|
43
44
|
.option('title', {
|
|
45
|
+
alias: 'i',
|
|
44
46
|
type: 'string',
|
|
45
47
|
describe: 'Window title text',
|
|
46
48
|
})
|
|
@@ -55,59 +57,72 @@ const createParser = () => yargs_1.default
|
|
|
55
57
|
describe: 'Padding in pixels (single value or "top,right,bottom,left")',
|
|
56
58
|
})
|
|
57
59
|
.option('font-size', {
|
|
60
|
+
alias: 'f',
|
|
58
61
|
type: 'number',
|
|
59
62
|
describe: 'Font size in pixels',
|
|
60
63
|
default: 14,
|
|
61
64
|
})
|
|
62
65
|
.option('line-height', {
|
|
66
|
+
alias: 'l',
|
|
63
67
|
type: 'number',
|
|
64
68
|
describe: 'Line height multiplier',
|
|
65
69
|
default: 1.4,
|
|
66
70
|
})
|
|
67
71
|
.option('watermark', {
|
|
72
|
+
alias: 'W',
|
|
68
73
|
type: 'string',
|
|
69
74
|
describe: 'Watermark text (bottom-right corner)',
|
|
70
75
|
})
|
|
71
76
|
.option('no-controls', {
|
|
77
|
+
alias: 'C',
|
|
72
78
|
type: 'boolean',
|
|
73
79
|
describe: 'Hide window control buttons',
|
|
74
80
|
default: false,
|
|
75
81
|
})
|
|
76
82
|
.option('no-custom-glyphs', {
|
|
83
|
+
alias: 'G',
|
|
77
84
|
type: 'boolean',
|
|
78
85
|
describe: 'Use font glyphs instead of pixel-perfect box drawing',
|
|
79
86
|
default: false,
|
|
80
87
|
})
|
|
81
88
|
.option('font-family', {
|
|
89
|
+
alias: 'F',
|
|
82
90
|
type: 'string',
|
|
83
91
|
describe: 'CSS font-family string',
|
|
84
92
|
})
|
|
85
93
|
.option('embed-font', {
|
|
94
|
+
alias: 'e',
|
|
86
95
|
type: 'boolean',
|
|
87
96
|
describe: 'Embed system font in SVG (for portability)',
|
|
88
97
|
default: false,
|
|
89
98
|
})
|
|
90
99
|
.option('header-height', {
|
|
100
|
+
alias: 'H',
|
|
91
101
|
type: 'number',
|
|
92
102
|
describe: 'Custom header bar height (enables header)',
|
|
93
103
|
})
|
|
94
104
|
.option('header-color', {
|
|
105
|
+
alias: 'c',
|
|
95
106
|
type: 'string',
|
|
96
107
|
describe: 'Header background color (hex)',
|
|
97
108
|
})
|
|
98
109
|
.option('footer-height', {
|
|
110
|
+
alias: 'r',
|
|
99
111
|
type: 'number',
|
|
100
112
|
describe: 'Footer bar height (enables footer)',
|
|
101
113
|
})
|
|
102
114
|
.option('footer-color', {
|
|
115
|
+
alias: 'R',
|
|
103
116
|
type: 'string',
|
|
104
117
|
describe: 'Footer background color (hex)',
|
|
105
118
|
})
|
|
106
119
|
.option('list-themes', {
|
|
120
|
+
alias: 'L',
|
|
107
121
|
type: 'boolean',
|
|
108
122
|
describe: 'List all available themes',
|
|
109
123
|
})
|
|
110
124
|
.option('list-templates', {
|
|
125
|
+
alias: 'P',
|
|
111
126
|
type: 'boolean',
|
|
112
127
|
describe: 'List all available templates',
|
|
113
128
|
})
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;;;;;AAEA,kDAA0B;AAC1B,uCAA0C;AAC1C,yCAUoB;AAGpB,MAAM,YAAY,GAAG,GAAG,EAAE,CACxB,eAAK;KACF,UAAU,CAAC,UAAU,CAAC;KACtB,KAAK,CAAC,qBAAqB,CAAC;KAC5B,KAAK,CAAC,EAAE,CAAC;KACT,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;;;;;AAEA,kDAA0B;AAC1B,uCAA0C;AAC1C,yCAUoB;AAGpB,MAAM,YAAY,GAAG,GAAG,EAAE,CACxB,eAAK;KACF,UAAU,CAAC,UAAU,CAAC;KACtB,KAAK,CAAC,qBAAqB,CAAC;KAC5B,KAAK,CAAC,EAAE,CAAC;KACT,KAAK,CAAC,mCAAmC,CAAC;KAC1C,MAAM,CAAC,QAAQ,EAAE;IAChB,KAAK,EAAE,GAAG;IACV,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,+CAA+C;CAC1D,CAAC;KACD,MAAM,CAAC,MAAM,EAAE;IACd,KAAK,EAAE,GAAG;IACV,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,qCAAqC;CAChD,CAAC;KACD,MAAM,CAAC,QAAQ,EAAE;IAChB,KAAK,EAAE,GAAG;IACV,IAAI,EAAE,SAAS;IACf,QAAQ,EAAE,sCAAsC;IAChD,OAAO,EAAE,KAAK;CACf,CAAC;KACD,MAAM,CAAC,UAAU,EAAE;IAClB,KAAK,EAAE,GAAG;IACV,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,yBAAc;IACvB,QAAQ,EAAE,uBAAuB;IACjC,OAAO,EAAE,OAAO;CACjB,CAAC;KACD,MAAM,CAAC,OAAO,EAAE;IACf,KAAK,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,sBAAsB,CAAC,CAAC;QACrC,IAAI,CAAC,CAAC,EAAE,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5D,CAAC;AACH,CAAC,CAAC;AAEF,GAAG,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shellfie-cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Transform terminal output into beautiful SVG images from the command line",
|
|
5
5
|
"bin": {
|
|
6
|
-
"shellfie": "
|
|
6
|
+
"shellfie": "dist/cli.js"
|
|
7
7
|
},
|
|
8
8
|
"main": "dist/cli.js",
|
|
9
9
|
"types": "dist/cli.d.ts",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"author": "tool3",
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"shellfie": "^2.0.
|
|
34
|
+
"shellfie": "^2.0.2",
|
|
35
35
|
"yargs": "^17.7.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|