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
PieceMapStringString`cli:"p,piece" usage:"sub CSS selectors within -css to split that block up into pieces\n\t\t\tformat: PieceName=[RAW:]selector_string\n\t\t\tRAW: will return the selected as-is; else the text will be returned"`
30
30
Delistring`cli:"d,delimiter" usage:"delimiter for pieces csv output" dft:"\t"`
31
31
WrapHTMLbool`cli:"w,wrap-html" usage:"wrap up the output with html tags"`
32
+
Stylestring`cli:"y,style" usage:"style component within the wrapped html head"`
32
33
Basestring`cli:"b,base" usage:"base href tag used in the wrapped up html"`
33
34
Quietbool`cli:"q,quiet" usage:"be quiet"`
34
35
}
35
36
36
37
varroot=&cli.Command{
37
38
Name: "cascadiaC",
38
39
Desc: "cascadia wrapper\nVersion "+version+" built on "+date+
39
-
"\nCopyright (C) 2020, Tong Sun",
40
+
"\nCopyright (C) 2021, Tong Sun",
40
41
Text: "Command line interface to go cascadia CSS selectors package"+
41
42
"\n\nUsage:\n cascadia -i in -c css -o [Options...]",
42
43
Argv: func() interface{} { returnnew(rootT) },
43
-
Fn: cascadiaC,
44
+
Fn: CascadiaC,
44
45
45
46
NumOption: cli.AtLeast(3),
46
47
}
@@ -57,6 +58,7 @@ var root = &cli.Command{
57
58
// Piece MapStringString
58
59
// Deli string
59
60
// WrapHTML bool
61
+
// Style string
60
62
// Base string
61
63
// Quiet bool
62
64
// Verbose int
@@ -68,7 +70,7 @@ var root = &cli.Command{
68
70
// var (
69
71
// progname = "cascadiaC"
70
72
// version = "0.1.0"
71
-
// date = "2020-04-19"
73
+
// date = "2021-07-16"
72
74
73
75
// rootArgv *rootT
74
76
// // Opts store all the configurable options
@@ -80,9 +82,7 @@ var root = &cli.Command{
80
82
81
83
// Function main
82
84
// func main() {
83
-
// cli.SetUsageStyle(cli.DenseNormalStyle) // left-right, for up-down, use ManualStyle
84
-
// //NOTE: You can set any writer implements io.Writer
85
-
// // default writer is os.Stdout
85
+
// cli.SetUsageStyle(cli.DenseNormalStyle)
86
86
// if err := cli.Root(root,).Run(os.Args[1:]); err != nil {
0 commit comments