@css-doodle/cli
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -26,3 +26,2 @@ #!/usr/bin/env node | ||
async function handleGenerate(source, options) { | ||
@@ -93,3 +92,4 @@ let { content, error } = read(source); | ||
program | ||
.command('screenshot') | ||
.command('render') | ||
.description('generate an image from the CSS Doodle source file') | ||
.argument('<source>', 'the CSS Doodle source file used to generate the image') | ||
@@ -96,0 +96,0 @@ .option('-o, --output <output>', 'custom filename of the generated image') |
{ | ||
"name": "@css-doodle/cli", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "The css-doodle CLI for previewing and generating images", | ||
@@ -5,0 +5,0 @@ "bin": { |
@@ -25,3 +25,3 @@ # @css-doodle/cli | ||
Commands: | ||
screenshot [options] <source> | ||
render [options] <source> generate an image from the CSS Doodle source file | ||
preview [options] <source> open a window to preview the CSS Doodle file | ||
@@ -33,6 +33,7 @@ parse <source> print the parsed tokens, helped to debug on development | ||
## screenshot | ||
## render | ||
Generate an image from the CSS Doodle source file | ||
```bash | ||
$ css-doodle screenshot code.css | ||
$ css-doodle render code.css | ||
``` | ||
@@ -45,3 +46,3 @@ | ||
```bash | ||
$ css-doodle screenshot code.css -o result.png | ||
$ css-doodle render code.css -o result.png | ||
``` | ||
@@ -54,3 +55,3 @@ | ||
```bash | ||
$ css-doodle screenshot code.css -x 4 | ||
$ css-doodle render code.css -x 4 | ||
``` | ||
@@ -86,3 +87,3 @@ | ||
Use a custom browser to preview and screenshot. | ||
Use a custom browser to preview and generate images. | ||
@@ -89,0 +90,0 @@ ```bash |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
374
88
105800