You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cascadia_cli.yaml
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
# program name, name for the executable
2
2
ProgramName: cascadia
3
3
Authors: Tong Sun
4
+
Since: 2016
4
5
5
6
PackageName: main
6
7
@@ -41,7 +42,7 @@ Options:
41
42
- Name: Piece
42
43
Type: PieceStyleMap
43
44
Flag: 'p,piece'
44
-
Usage: 'sub CSS selectors within -css to split that block up into pieces\n\t\t\t\tformat: PieceName=[PieceStyle:]selector_string\n\t\t\t\t PieceStyle:\n\t\t\t\t RAW : will return the selected as-is\n\t\t\t\t attr[xx] : will return the value of xx attribute\n\t\t\t\telse the text will be returned'
45
+
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'
CSS []string`cli:"*c,css" usage:"CSS selectors (can provide more if not using --piece)"`
29
-
TextOutbool`cli:"t,text" usage:"Text output for none-block selection mode"`
30
-
TextRawbool`cli:"R,Raw" usage:"Raw text output, no trimming of leading and trailing white space"`
31
-
PiecePieceStyleMap`cli:"p,piece" usage:"sub CSS selectors within -css to split that block up into pieces\n\t\t\t\tformat: PieceName=[PieceStyle:]selector_string\n\t\t\t\t PieceStyle:\n\t\t\t\t RAW : will return the selected as-is\n\t\t\t\t attr[xx] : will return the value of xx attribute\n\t\t\t\telse the text will be returned"`
32
-
Delistring`cli:"d,delimiter" usage:"delimiter for pieces csv output" dft:"\t"`
33
-
WrapHTMLbool`cli:"w,wrap-html" usage:"wrap up the output with html tags"`
34
-
Stylestring`cli:"y,style" usage:"style component within the wrapped html head"`
35
-
Basestring`cli:"b,base" usage:"base href tag used in the wrapped up html"`
36
-
Quietbool`cli:"q,quiet" usage:"be quiet"`
26
+
Filei*clix.Reader`cli:"*i,in" usage:"The html/xml file to read from (or stdin)"`
CSS []string`cli:"*c,css" usage:"CSS selectors (can provide more if not using --piece)"`
29
+
TextOutbool`cli:"t,text" usage:"Text output for none-block selection mode"`
30
+
TextRawbool`cli:"R,Raw" usage:"Raw text output, no trimming of leading and trailing white space"`
31
+
PiecePieceStyleMap`cli:"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"`
32
+
Delistring`cli:"d,delimiter" usage:"delimiter for pieces csv output" dft:"\t"`
33
+
WrapHTMLbool`cli:"w,wrap-html" usage:"wrap up the output with html tags"`
34
+
Stylestring`cli:"y,style" usage:"style component within the wrapped html head"`
35
+
Basestring`cli:"b,base" usage:"base href tag used in the wrapped up html"`
36
+
Quietbool`cli:"q,quiet" usage:"be quiet"`
37
37
}
38
38
39
39
varroot=&cli.Command{
40
40
Name: "cascadiaC",
41
41
Desc: "cascadia wrapper\nVersion "+version+" built on "+date+
42
-
"\nCopyright (C) 2023, Tong Sun",
42
+
"\nCopyright (C) 2016-2023, Tong Sun",
43
43
Text: "Command line interface to go cascadia CSS selectors package"+
44
44
"\n\nUsage:\n cascadia -i in -c css -o [Options...]",
0 commit comments