Skip to content

Commit d0c6e33

Browse files
committed
Update readme
1 parent fa19d1a commit d0c6e33

1 file changed

Lines changed: 29 additions & 9 deletions

File tree

README.md

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The css-doodle CLI for previewing and generating images.
1010
npm install -g @css-doodle/cli
1111
```
1212

13-
## Commands
13+
## Commands
1414

1515
### render
1616
Generate 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]
7595
The css-doodle CLI for previewing and generating images
7696
7797
Options:
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
81101
Commands:
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

Comments
 (0)