-
Notifications
You must be signed in to change notification settings - Fork 11
/
cascadia_cli.yaml
72 lines (57 loc) · 1.73 KB
/
cascadia_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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# program name, name for the executable
ProgramName: cascadia
Authors: Tong Sun
Since: 2016
PackageName: main
Name: cascadiaC
Desc: cascadia wrapper
Text: Command line interface to go cascadia CSS selectors package
#NumArg: cli.AtLeast(1)
NumOption: cli.AtLeast(3)
UsageLead: "Usage:\\n cascadia -i in -c css -o [Options...]"
Options:
- Name: Filei
Type: '*clix.Reader'
Flag: "*i,in"
Usage: 'The html/xml file to read from (or stdin)'
- Name: Fileo
Type: '*clix.Writer'
Flag: "*o,out"
Usage: 'The output file (or stdout)'
- Name: CSS
Type: '[]string'
Flag: '*c,css'
Usage: CSS selectors (can provide more if not using --piece)
- Name: TextOut
Type: bool
Flag: t,text
Usage: Text output for none-block selection mode
- Name: TextRaw
Type: bool
Flag: R,Raw
Usage: Raw text output, no trimming of leading and trailing white space
- Name: Piece
Type: PieceStyleMap
Flag: 'p,piece'
Usage: 'sub CSS selectors within -css to split that block up into pieces\n\t\t\tformat: PieceName=[PieceStyle:]selector_string\n\t\t\t PieceStyle:\n\t\t\t RAW : will return the selected as-is\n\t\t\t ATTR : will return the value of attribute selector_string\n\t\t\t Else the text will be returned'
- Name: Deli
Type: string
Flag: d,delimiter
Usage: delimiter for pieces csv output
Value: "\\t"
- Name: WrapHTML
Type: bool
Flag: w,wrap-html
Usage: wrap up the output with html tags
- Name: Style
Type: string
Flag: y,style
Usage: style component within the wrapped html head
- Name: Base
Type: string
Flag: b,base
Usage: base href tag used in the wrapped up html
- Name: Quiet
Type: bool
Flag: q,quiet
Usage: be quiet