/
CLI.yaml
44 lines (44 loc) · 1.54 KB
/
CLI.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
filename: ecoco
options:
ckup:
description: Compile ckup file into `.js` file. Output file will have `//uuid:X` at the beginning, where X is UUID v1. JavaScript in output file will be minified.
boolean: true
compile:
alias: c
description: Equivalent to `coco -c`
boolean: true
bare:
alias: b
description: Equivalent to `coco -b`
boolean: true
uglify:
alias:
- u
- compress
description: Compress output (uses `uglify-js`)
boolean: true
binary:
description: Output filename without `.js` and adds `#!/usr/bin/env node` at the beginning of output file.
boolean: true
include FILE:
description:
If FILE has `co` extension then AT COMPILE TIME prepend FILE to source file.
Otherwise if FILE has `js` extension then AFTER compiling prepend FILE to compiled file.
make-readme FILE:
description:
Replace `{CLI}` in `README.md.src` with `file --usage` and save it to `README.md`.
no-colors:
description: Disable color output
boolean: true
no-beep:
description: Disable error beep
boolean: true
examples:
-cbu awesome.co: compiles to awesome.js with `bare` and `uglify`
--ckup index.ckup: compiles `index.ckup` into `index.js`
--make-readme: compiles README.md.src into README.md
binary.co --what: executes binary.co with `--what` argument
display_settings:
options:
hmargin: 2
description: "Usage:\n\tecoco [options] file [arguments]\n\tecoco file -c [options]\n\n\ti.e. if you want to execute (not compile)\n\t then put arguments after file."