6262
6363Usage:
6464
65- Standard syntax:
65+ Standard syntax:
6666
67- COMMAND | jc [SLICE] [OPTIONS] PARSER
67+ COMMAND | jc [SLICE] [OPTIONS] PARSER
6868
69- cat FILE | jc [SLICE] [OPTIONS] PARSER
69+ cat FILE | jc [SLICE] [OPTIONS] PARSER
7070
71- echo STRING | jc [SLICE] [OPTIONS] PARSER
71+ echo STRING | jc [SLICE] [OPTIONS] PARSER
7272
73- Magic syntax:
73+ Magic syntax:
7474
75- jc [SLICE] [OPTIONS] COMMAND
75+ jc [SLICE] [OPTIONS] COMMAND
7676
77- jc [SLICE] [OPTIONS] /proc/<path-to-procfile>
77+ jc [SLICE] [OPTIONS] /proc/<path-to-procfile>
7878
7979Parsers:
8080'''
8181
8282slicetext_string : str = '''\
8383 Slice:
84- [start]:[end]
84+ [start]:[end]
8585
86- start: [[-]index] - Zero-based start line, negative index for
87- counting from the end
86+ start: [[-]index] - Zero-based start line, negative index for
87+ counting from the end
8888
89- end: [[-]index] - Zero-based end line (excluding the index),
90- negative index for counting from the end
89+ end: [[-]index] - Zero-based end line (excluding the index),
90+ negative index for counting from the end
9191'''
9292
9393helptext_end_string : str = '''\
9494 Examples:
95- Standard Syntax:
96- $ dig www.google.com | jc --pretty --dig
97- $ cat /proc/meminfo | jc --pretty --proc
95+ Standard Syntax:
96+ $ dig www.google.com | jc --pretty --dig
97+ $ cat /proc/meminfo | jc --pretty --proc
9898
99- Magic Syntax:
100- $ jc --pretty dig www.google.com
101- $ jc --pretty /proc/meminfo
99+ Magic Syntax:
100+ $ jc --pretty dig www.google.com
101+ $ jc --pretty /proc/meminfo
102102
103- Line Slicing:
104- $ cat output.txt | jc 4:15 --<PARSER> # Parse from line 4 to 14
105- # with <PARSER> (zero-based)
103+ Line Slicing:
104+ $ cat output.txt | jc 4:15 --<PARSER> # Parse from line 4 to 14
105+ # with <PARSER> (zero-based)
106106
107- Parser Documentation:
108- $ jc --help --dig
107+ Parser Documentation:
108+ $ jc --help --dig
109109
110- More Help:
111- $ jc -hh # show hidden parsers
112- $ jc -hhh # list parsers by category tags
110+ More Help:
111+ $ jc -hh # show hidden parsers
112+ $ jc -hhh # list parsers by category tags
113113'''
0 commit comments