@@ -10,7 +10,7 @@ The css-doodle CLI for previewing and generating images.
1010npm install -g @css-doodle/cli
1111```
1212
13- ## Commands
13+ ## Commands
1414
1515### render
1616Generate an image from the CSS Doodle source file.
@@ -67,6 +67,26 @@ Use a custom browser to preview and generate images.
6767$ css-doodle config browserPath /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome
6868```
6969
70+ ### generate
71+
72+ Generate code using CSS Doodle generators.
73+
74+ #### svg
75+
76+ Generate SVG code using svg() function.
77+
78+ ``` bash
79+ $ css-doodle generate svg code.css
80+ ```
81+
82+ #### polygon
83+
84+ Generate CSS polygon() using shape() function.
85+
86+ ``` bash
87+ $ css-doodle generate polygon code.css
88+ ```
89+
7090## Usage
7191
7292```
@@ -75,14 +95,14 @@ Usage: css-doodle [options] [command]
7595The css-doodle CLI for previewing and generating images
7696
7797Options:
78- -V, --version output the version number
79- -h, --help display help for command
98+ -V, --version output the version number
99+ -h, --help display help for command
80100
81101Commands:
82- render [options] <source> generate an image from the CSS Doodle source file
83- preview [options] <source> open a window to preview the CSS Doodle file
84- parse <source> print the parsed tokens, helped to debug on development
85- config display/set the configuration
86- help [command] display help for command
102+ render [options] <source> generate an image from the CSS Doodle source file
103+ preview [options] <source> open a window to preview the CSS Doodle file
104+ parse <source> print the parsed tokens, helped to debug on development
105+ config display/set the configuration
106+ generate generate code using CSS Doodle generators
107+ help [command] display help for command
87108```
88-
0 commit comments