Skip to content

Commit aee40b7

Browse files
committed
- [+] add the -t,--text wireframe
1 parent c7a6ccd commit aee40b7

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

cascadia_cli.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ Options:
2828
Flag: '*c,css'
2929
Usage: CSS selectors (can provide more if not using --piece)
3030

31+
- Name: TextOut
32+
Type: bool
33+
Flag: t,text
34+
Usage: Text output for none-block selection mode
35+
3136
- Name: Piece
3237
Type: MapStringString
3338
Flag: 'p,piece'

cascadia_cliDef.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ type rootT struct {
2626
Filei *clix.Reader `cli:"*i,in" usage:"The html/xml file to read from (or stdin)"`
2727
Fileo *clix.Writer `cli:"*o,out" usage:"The output file (or stdout)"`
2828
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"`
2930
Piece MapStringString `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"`
3031
Deli string `cli:"d,delimiter" usage:"delimiter for pieces csv output" dft:"\t"`
3132
WrapHTML bool `cli:"w,wrap-html" usage:"wrap up the output with html tags"`
@@ -55,6 +56,7 @@ var root = &cli.Command{
5556
// Filei *clix.Reader
5657
// Fileo *clix.Writer
5758
// CSS []string
59+
// TextOut bool
5860
// Piece MapStringString
5961
// Deli string
6062
// WrapHTML bool
@@ -70,7 +72,7 @@ var root = &cli.Command{
7072
// var (
7173
// progname = "cascadiaC"
7274
// version = "0.1.0"
73-
// date = "2021-07-16"
75+
// date = "2021-11-27"
7476

7577
// rootArgv *rootT
7678
// // Opts store all the configurable options

0 commit comments

Comments
 (0)