Skip to content

Commit 0fd2ec0

Browse files
committed
- [#] update cascadia_cli.yaml and redo go generate
1 parent 9670214 commit 0fd2ec0

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

cascadia_cli.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Options:
4141
- Name: Piece
4242
Type: OutputStyleMap
4343
Flag: 'p,piece'
44-
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'
44+
Usage: 'sub CSS selectors within -css to split that block up into pieces\n\t\t\tformat: PieceName=[OutputStyle:]selector_string\n\t\t\tOutputStyle:\n\t\t\t\tRAW : will return the selected as-is\n\t\t\t\tattr[xxx] : will return the value of an attribute named xxx \n\t\t\telse the text will be returned'
4545

4646
- Name: Deli
4747
Type: string

cascadia_cliDef.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
////////////////////////////////////////////////////////////////////////////
22
// Program: cascadiaC
33
// Purpose: cascadia wrapper
4-
// Authors: Tong Sun (c) 2021, All rights reserved
4+
// Authors: Tong Sun (c) 2023, All rights reserved
55
////////////////////////////////////////////////////////////////////////////
66

77
package main
@@ -23,23 +23,23 @@ import (
2323

2424
type rootT struct {
2525
cli.Helper
26-
Filei *clix.Reader `cli:"*i,in" usage:"The html/xml file to read from (or stdin)"`
27-
Fileo *clix.Writer `cli:"*o,out" usage:"The output file (or stdout)"`
28-
CSS []string `cli:"*c,css" usage:"CSS selectors (can provide more if not using --piece)"`
29-
TextOut bool `cli:"t,text" usage:"Text output for none-block selection mode"`
30-
TextRaw bool `cli:"R,Raw" usage:"Raw text output, no trimming of leading and trailing white space"`
26+
Filei *clix.Reader `cli:"*i,in" usage:"The html/xml file to read from (or stdin)"`
27+
Fileo *clix.Writer `cli:"*o,out" usage:"The output file (or stdout)"`
28+
CSS []string `cli:"*c,css" usage:"CSS selectors (can provide more if not using --piece)"`
29+
TextOut bool `cli:"t,text" usage:"Text output for none-block selection mode"`
30+
TextRaw bool `cli:"R,Raw" usage:"Raw text output, no trimming of leading and trailing white space"`
3131
Piece OutputStyleMap `cli:"p,piece" usage:"sub CSS selectors within -css to split that block up into pieces\n\t\t\tformat: PieceName=[OutputStyle:]selector_string\n\t\t\tOutputStyle:\n\t\t\t\tRAW : will return the selected as-is\n\t\t\t\tattr[xxx] : will return the value of an attribute named xxx \n\t\t\telse the text will be returned"`
32-
Deli string `cli:"d,delimiter" usage:"delimiter for pieces csv output" dft:"\t"`
33-
WrapHTML bool `cli:"w,wrap-html" usage:"wrap up the output with html tags"`
34-
Style string `cli:"y,style" usage:"style component within the wrapped html head"`
35-
Base string `cli:"b,base" usage:"base href tag used in the wrapped up html"`
36-
Quiet bool `cli:"q,quiet" usage:"be quiet"`
32+
Deli string `cli:"d,delimiter" usage:"delimiter for pieces csv output" dft:"\t"`
33+
WrapHTML bool `cli:"w,wrap-html" usage:"wrap up the output with html tags"`
34+
Style string `cli:"y,style" usage:"style component within the wrapped html head"`
35+
Base string `cli:"b,base" usage:"base href tag used in the wrapped up html"`
36+
Quiet bool `cli:"q,quiet" usage:"be quiet"`
3737
}
3838

3939
var root = &cli.Command{
4040
Name: "cascadiaC",
4141
Desc: "cascadia wrapper\nVersion " + version + " built on " + date +
42-
"\nCopyright (C) 2021, Tong Sun",
42+
"\nCopyright (C) 2023, Tong Sun",
4343
Text: "Command line interface to go cascadia CSS selectors package" +
4444
"\n\nUsage:\n cascadia -i in -c css -o [Options...]",
4545
Argv: func() interface{} { return new(rootT) },
@@ -74,7 +74,7 @@ var root = &cli.Command{
7474
// var (
7575
// progname = "cascadiaC"
7676
// version = "0.1.0"
77-
// date = "2021-11-27"
77+
// date = "2023-01-08"
7878

7979
// rootArgv *rootT
8080
// // Opts store all the configurable options

0 commit comments

Comments
 (0)