bionic-reader 0.1.0__py3-none-macosx_11_0_arm64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (21) hide show
  1. bionic_reader-0.1.0.data/data/share/bionic-reader/completions/_bionic-reader +595 -0
  2. bionic_reader-0.1.0.data/data/share/bionic-reader/completions/bionic-reader.bash +1052 -0
  3. bionic_reader-0.1.0.data/data/share/bionic-reader/completions/bionic-reader.fish +372 -0
  4. bionic_reader-0.1.0.data/data/share/bionic-reader/config.example.toml +19 -0
  5. bionic_reader-0.1.0.data/data/share/bionic-reader/integrations/adapters/README.md +37 -0
  6. bionic_reader-0.1.0.data/data/share/bionic-reader/integrations/adapters/bash-it/bionic-reader/bionic-reader.plugin.bash +4 -0
  7. bionic_reader-0.1.0.data/data/share/bionic-reader/integrations/adapters/fisher/bionic-reader/conf.d/bionic-reader.fish +4 -0
  8. bionic_reader-0.1.0.data/data/share/bionic-reader/integrations/adapters/frameworks.tsv +7 -0
  9. bionic_reader-0.1.0.data/data/share/bionic-reader/integrations/adapters/oh-my-bash/bionic-reader/bionic-reader.plugin.sh +4 -0
  10. bionic_reader-0.1.0.data/data/share/bionic-reader/integrations/adapters/oh-my-fish/bionic-reader/init.fish +4 -0
  11. bionic_reader-0.1.0.data/data/share/bionic-reader/integrations/adapters/oh-my-zsh/bionic-reader/bionic-reader.plugin.zsh +4 -0
  12. bionic_reader-0.1.0.data/data/share/bionic-reader/integrations/adapters/prezto/bionic-reader/init.zsh +4 -0
  13. bionic_reader-0.1.0.data/data/share/bionic-reader/integrations/adapters/zinit/bionic-reader/init.zsh +4 -0
  14. bionic_reader-0.1.0.data/data/share/bionic-reader/integrations/bash.sh +85 -0
  15. bionic_reader-0.1.0.data/data/share/bionic-reader/integrations/fish.fish +27 -0
  16. bionic_reader-0.1.0.data/data/share/bionic-reader/integrations/zsh.sh +33 -0
  17. bionic_reader-0.1.0.data/scripts/bionic-reader +0 -0
  18. bionic_reader-0.1.0.dist-info/METADATA +158 -0
  19. bionic_reader-0.1.0.dist-info/RECORD +21 -0
  20. bionic_reader-0.1.0.dist-info/WHEEL +4 -0
  21. bionic_reader-0.1.0.dist-info/sboms/bionic-reader.cyclonedx.json +3045 -0
@@ -0,0 +1,595 @@
1
+ #compdef bionic-reader
2
+
3
+ autoload -U is-at-least
4
+
5
+ _bionic-reader() {
6
+ typeset -A opt_args
7
+ typeset -a _arguments_options
8
+ local ret=1
9
+
10
+ if is-at-least 5.2; then
11
+ _arguments_options=(-s -S -C)
12
+ else
13
+ _arguments_options=(-s -C)
14
+ fi
15
+
16
+ local context curcontext="$curcontext" state line
17
+ _arguments "${_arguments_options[@]}" : \
18
+ '-t+[Transform this text instead of reading stdin]:TEXT:_default' \
19
+ '--text=[Transform this text instead of reading stdin]:TEXT:_default' \
20
+ '--fraction=[Fraction of each selected word to emphasize (0 through 1)]:FRACTION:_default' \
21
+ '--every=[Emphasize the first eligible word and then every Nth word]:EVERY:_default' \
22
+ '--min-word-length=[Minimum number of letters a word must have to receive emphasis]:MIN_WORD_LENGTH:_default' \
23
+ '--style=[When to apply emphasis\: automatically for terminals, always, or never]:STYLE:((auto\:"Enable emphasis when output is a terminal"
24
+ always\:"Enable emphasis regardless of the output destination"
25
+ never\:"Disable added emphasis; configured format and input-control processing still apply"))' \
26
+ '--config=[Read an explicit TOML configuration file]:CONFIG:_files' \
27
+ '*--exclude=[Add a command name to the interactive passthrough exclusions]:EXCLUDE:_default' \
28
+ '--profile=[Named fixation preference; explicit numeric flags override its values]:PROFILE:((subtle\:"Emphasize fewer, longer words with a shorter prefix"
29
+ balanced\:"Emphasize half of each eligible word"
30
+ strong\:"Emphasize a longer prefix of every eligible word"))' \
31
+ '*--length-rule=[Per-length fraction in MAX\:FRACTION form; repeat in increasing MAX order]:LENGTH_RULES:_default' \
32
+ '--emphasis=[Emphasis attribute\: bold, underline, or reverse video]:EMPHASIS:((bold\:"Use bold intensity, restoring the original bold and faint attributes"
33
+ underline\:"Use underlining without changing text colors or intensity"
34
+ reverse\:"Use reverse video without selecting a brighter foreground color"))' \
35
+ '--input-format=[Interpret ordinary text, Markdown source, or trusted terminal output]:INPUT_FORMAT:((text\:"Ordinary text with the configured terminal-control policy"
36
+ markdown\:"\`CommonMark\` source with protected syntax and code spans"
37
+ terminal\:"Trusted terminal output whose existing controls must be preserved"))' \
38
+ '--format=[Emit ANSI, unstyled plain text, Markdown emphasis, or escaped HTML]:FORMAT:((ansi\:"Terminal emphasis, subject to the style policy"
39
+ plain\:"Original text without terminal escape sequences or added emphasis"
40
+ markdown\:"Markdown source with emphasis syntax around selected prefixes"
41
+ html\:"Escaped HTML with semantic emphasis elements"))' \
42
+ '--controls=[Remove active document controls, or preserve trusted terminal controls]:CONTROLS:((safe\:"Permit presentation styling and safe hyperlinks; remove active controls"
43
+ preserve\:"Preserve terminal control bytes for trusted sources"))' \
44
+ '--skip-code=[Protect Markdown code from emphasis (default true); use --skip-code=false to include it]::SKIP_CODE:(true false)' \
45
+ '--low-latency=[Flush stalled partial words unchanged after 50 ms; disables content-only determinism]::LOW_LATENCY:(true false)' \
46
+ '-h[Print help (see more with '\''--help'\'')]' \
47
+ '--help[Print help (see more with '\''--help'\'')]' \
48
+ '-V[Print version]' \
49
+ '--version[Print version]' \
50
+ ":: :_bionic-reader_commands" \
51
+ "*::: :->bionic-reader" \
52
+ && ret=0
53
+ case $state in
54
+ (bionic-reader)
55
+ words=($line[1] "${words[@]}")
56
+ (( CURRENT += 1 ))
57
+ curcontext="${curcontext%:*:*}:bionic-reader-command-$line[1]:"
58
+ case $line[1] in
59
+ (read)
60
+ _arguments "${_arguments_options[@]}" : \
61
+ '--fraction=[Fraction of each selected word to emphasize (0 through 1)]:FRACTION:_default' \
62
+ '--every=[Emphasize the first eligible word and then every Nth word]:EVERY:_default' \
63
+ '--min-word-length=[Minimum number of letters a word must have to receive emphasis]:MIN_WORD_LENGTH:_default' \
64
+ '--style=[When to apply emphasis\: automatically for terminals, always, or never]:STYLE:((auto\:"Enable emphasis when output is a terminal"
65
+ always\:"Enable emphasis regardless of the output destination"
66
+ never\:"Disable added emphasis; configured format and input-control processing still apply"))' \
67
+ '--config=[Read an explicit TOML configuration file]:CONFIG:_files' \
68
+ '*--exclude=[Add a command name to the interactive passthrough exclusions]:EXCLUDE:_default' \
69
+ '--profile=[Named fixation preference; explicit numeric flags override its values]:PROFILE:((subtle\:"Emphasize fewer, longer words with a shorter prefix"
70
+ balanced\:"Emphasize half of each eligible word"
71
+ strong\:"Emphasize a longer prefix of every eligible word"))' \
72
+ '*--length-rule=[Per-length fraction in MAX\:FRACTION form; repeat in increasing MAX order]:LENGTH_RULES:_default' \
73
+ '--emphasis=[Emphasis attribute\: bold, underline, or reverse video]:EMPHASIS:((bold\:"Use bold intensity, restoring the original bold and faint attributes"
74
+ underline\:"Use underlining without changing text colors or intensity"
75
+ reverse\:"Use reverse video without selecting a brighter foreground color"))' \
76
+ '--input-format=[Interpret ordinary text, Markdown source, or trusted terminal output]:INPUT_FORMAT:((text\:"Ordinary text with the configured terminal-control policy"
77
+ markdown\:"\`CommonMark\` source with protected syntax and code spans"
78
+ terminal\:"Trusted terminal output whose existing controls must be preserved"))' \
79
+ '--format=[Emit ANSI, unstyled plain text, Markdown emphasis, or escaped HTML]:FORMAT:((ansi\:"Terminal emphasis, subject to the style policy"
80
+ plain\:"Original text without terminal escape sequences or added emphasis"
81
+ markdown\:"Markdown source with emphasis syntax around selected prefixes"
82
+ html\:"Escaped HTML with semantic emphasis elements"))' \
83
+ '--controls=[Remove active document controls, or preserve trusted terminal controls]:CONTROLS:((safe\:"Permit presentation styling and safe hyperlinks; remove active controls"
84
+ preserve\:"Preserve terminal control bytes for trusted sources"))' \
85
+ '--skip-code=[Protect Markdown code from emphasis (default true); use --skip-code=false to include it]::SKIP_CODE:(true false)' \
86
+ '--low-latency=[Flush stalled partial words unchanged after 50 ms; disables content-only determinism]::LOW_LATENCY:(true false)' \
87
+ '-h[Print help (see more with '\''--help'\'')]' \
88
+ '--help[Print help (see more with '\''--help'\'')]' \
89
+ '::file -- File to read; omit it or use - to consume piped stdin:_files' \
90
+ && ret=0
91
+ ;;
92
+ (preview)
93
+ _arguments "${_arguments_options[@]}" : \
94
+ '--text=[Passage for the interactive preview]:TEXT:_default' \
95
+ '--fraction=[Fraction of each selected word to emphasize (0 through 1)]:FRACTION:_default' \
96
+ '--every=[Emphasize the first eligible word and then every Nth word]:EVERY:_default' \
97
+ '--min-word-length=[Minimum number of letters a word must have to receive emphasis]:MIN_WORD_LENGTH:_default' \
98
+ '--style=[When to apply emphasis\: automatically for terminals, always, or never]:STYLE:((auto\:"Enable emphasis when output is a terminal"
99
+ always\:"Enable emphasis regardless of the output destination"
100
+ never\:"Disable added emphasis; configured format and input-control processing still apply"))' \
101
+ '--config=[Read an explicit TOML configuration file]:CONFIG:_files' \
102
+ '*--exclude=[Add a command name to the interactive passthrough exclusions]:EXCLUDE:_default' \
103
+ '--profile=[Named fixation preference; explicit numeric flags override its values]:PROFILE:((subtle\:"Emphasize fewer, longer words with a shorter prefix"
104
+ balanced\:"Emphasize half of each eligible word"
105
+ strong\:"Emphasize a longer prefix of every eligible word"))' \
106
+ '*--length-rule=[Per-length fraction in MAX\:FRACTION form; repeat in increasing MAX order]:LENGTH_RULES:_default' \
107
+ '--emphasis=[Emphasis attribute\: bold, underline, or reverse video]:EMPHASIS:((bold\:"Use bold intensity, restoring the original bold and faint attributes"
108
+ underline\:"Use underlining without changing text colors or intensity"
109
+ reverse\:"Use reverse video without selecting a brighter foreground color"))' \
110
+ '--input-format=[Interpret ordinary text, Markdown source, or trusted terminal output]:INPUT_FORMAT:((text\:"Ordinary text with the configured terminal-control policy"
111
+ markdown\:"\`CommonMark\` source with protected syntax and code spans"
112
+ terminal\:"Trusted terminal output whose existing controls must be preserved"))' \
113
+ '--format=[Emit ANSI, unstyled plain text, Markdown emphasis, or escaped HTML]:FORMAT:((ansi\:"Terminal emphasis, subject to the style policy"
114
+ plain\:"Original text without terminal escape sequences or added emphasis"
115
+ markdown\:"Markdown source with emphasis syntax around selected prefixes"
116
+ html\:"Escaped HTML with semantic emphasis elements"))' \
117
+ '--controls=[Remove active document controls, or preserve trusted terminal controls]:CONTROLS:((safe\:"Permit presentation styling and safe hyperlinks; remove active controls"
118
+ preserve\:"Preserve terminal control bytes for trusted sources"))' \
119
+ '--skip-code=[Protect Markdown code from emphasis (default true); use --skip-code=false to include it]::SKIP_CODE:(true false)' \
120
+ '--low-latency=[Flush stalled partial words unchanged after 50 ms; disables content-only determinism]::LOW_LATENCY:(true false)' \
121
+ '--print[Print the preview instead of opening the interactive reader]' \
122
+ '-h[Print help (see more with '\''--help'\'')]' \
123
+ '--help[Print help (see more with '\''--help'\'')]' \
124
+ && ret=0
125
+ ;;
126
+ (session)
127
+ _arguments "${_arguments_options[@]}" : \
128
+ '--shell=[Bash, Zsh, or fish executable (defaults to SHELL)]:SHELL:_default' \
129
+ '--fraction=[Fraction of each selected word to emphasize (0 through 1)]:FRACTION:_default' \
130
+ '--every=[Emphasize the first eligible word and then every Nth word]:EVERY:_default' \
131
+ '--min-word-length=[Minimum number of letters a word must have to receive emphasis]:MIN_WORD_LENGTH:_default' \
132
+ '--style=[When to apply emphasis\: automatically for terminals, always, or never]:STYLE:((auto\:"Enable emphasis when output is a terminal"
133
+ always\:"Enable emphasis regardless of the output destination"
134
+ never\:"Disable added emphasis; configured format and input-control processing still apply"))' \
135
+ '--config=[Read an explicit TOML configuration file]:CONFIG:_files' \
136
+ '*--exclude=[Add a command name to the interactive passthrough exclusions]:EXCLUDE:_default' \
137
+ '--profile=[Named fixation preference; explicit numeric flags override its values]:PROFILE:((subtle\:"Emphasize fewer, longer words with a shorter prefix"
138
+ balanced\:"Emphasize half of each eligible word"
139
+ strong\:"Emphasize a longer prefix of every eligible word"))' \
140
+ '*--length-rule=[Per-length fraction in MAX\:FRACTION form; repeat in increasing MAX order]:LENGTH_RULES:_default' \
141
+ '--emphasis=[Emphasis attribute\: bold, underline, or reverse video]:EMPHASIS:((bold\:"Use bold intensity, restoring the original bold and faint attributes"
142
+ underline\:"Use underlining without changing text colors or intensity"
143
+ reverse\:"Use reverse video without selecting a brighter foreground color"))' \
144
+ '--input-format=[Interpret ordinary text, Markdown source, or trusted terminal output]:INPUT_FORMAT:((text\:"Ordinary text with the configured terminal-control policy"
145
+ markdown\:"\`CommonMark\` source with protected syntax and code spans"
146
+ terminal\:"Trusted terminal output whose existing controls must be preserved"))' \
147
+ '--format=[Emit ANSI, unstyled plain text, Markdown emphasis, or escaped HTML]:FORMAT:((ansi\:"Terminal emphasis, subject to the style policy"
148
+ plain\:"Original text without terminal escape sequences or added emphasis"
149
+ markdown\:"Markdown source with emphasis syntax around selected prefixes"
150
+ html\:"Escaped HTML with semantic emphasis elements"))' \
151
+ '--controls=[Remove active document controls, or preserve trusted terminal controls]:CONTROLS:((safe\:"Permit presentation styling and safe hyperlinks; remove active controls"
152
+ preserve\:"Preserve terminal control bytes for trusted sources"))' \
153
+ '--skip-code=[Protect Markdown code from emphasis (default true); use --skip-code=false to include it]::SKIP_CODE:(true false)' \
154
+ '--low-latency=[Flush stalled partial words unchanged after 50 ms; disables content-only determinism]::LOW_LATENCY:(true false)' \
155
+ '-h[Print help (see more with '\''--help'\'')]' \
156
+ '--help[Print help (see more with '\''--help'\'')]' \
157
+ && ret=0
158
+ ;;
159
+ (init)
160
+ _arguments "${_arguments_options[@]}" : \
161
+ '--fraction=[Fraction of each selected word to emphasize (0 through 1)]:FRACTION:_default' \
162
+ '--every=[Emphasize the first eligible word and then every Nth word]:EVERY:_default' \
163
+ '--min-word-length=[Minimum number of letters a word must have to receive emphasis]:MIN_WORD_LENGTH:_default' \
164
+ '--style=[When to apply emphasis\: automatically for terminals, always, or never]:STYLE:((auto\:"Enable emphasis when output is a terminal"
165
+ always\:"Enable emphasis regardless of the output destination"
166
+ never\:"Disable added emphasis; configured format and input-control processing still apply"))' \
167
+ '--config=[Read an explicit TOML configuration file]:CONFIG:_files' \
168
+ '*--exclude=[Add a command name to the interactive passthrough exclusions]:EXCLUDE:_default' \
169
+ '--profile=[Named fixation preference; explicit numeric flags override its values]:PROFILE:((subtle\:"Emphasize fewer, longer words with a shorter prefix"
170
+ balanced\:"Emphasize half of each eligible word"
171
+ strong\:"Emphasize a longer prefix of every eligible word"))' \
172
+ '*--length-rule=[Per-length fraction in MAX\:FRACTION form; repeat in increasing MAX order]:LENGTH_RULES:_default' \
173
+ '--emphasis=[Emphasis attribute\: bold, underline, or reverse video]:EMPHASIS:((bold\:"Use bold intensity, restoring the original bold and faint attributes"
174
+ underline\:"Use underlining without changing text colors or intensity"
175
+ reverse\:"Use reverse video without selecting a brighter foreground color"))' \
176
+ '--input-format=[Interpret ordinary text, Markdown source, or trusted terminal output]:INPUT_FORMAT:((text\:"Ordinary text with the configured terminal-control policy"
177
+ markdown\:"\`CommonMark\` source with protected syntax and code spans"
178
+ terminal\:"Trusted terminal output whose existing controls must be preserved"))' \
179
+ '--format=[Emit ANSI, unstyled plain text, Markdown emphasis, or escaped HTML]:FORMAT:((ansi\:"Terminal emphasis, subject to the style policy"
180
+ plain\:"Original text without terminal escape sequences or added emphasis"
181
+ markdown\:"Markdown source with emphasis syntax around selected prefixes"
182
+ html\:"Escaped HTML with semantic emphasis elements"))' \
183
+ '--controls=[Remove active document controls, or preserve trusted terminal controls]:CONTROLS:((safe\:"Permit presentation styling and safe hyperlinks; remove active controls"
184
+ preserve\:"Preserve terminal control bytes for trusted sources"))' \
185
+ '--skip-code=[Protect Markdown code from emphasis (default true); use --skip-code=false to include it]::SKIP_CODE:(true false)' \
186
+ '--low-latency=[Flush stalled partial words unchanged after 50 ms; disables content-only determinism]::LOW_LATENCY:(true false)' \
187
+ '-h[Print help (see more with '\''--help'\'')]' \
188
+ '--help[Print help (see more with '\''--help'\'')]' \
189
+ ':shell:(bash zsh fish)' \
190
+ && ret=0
191
+ ;;
192
+ (completions)
193
+ _arguments "${_arguments_options[@]}" : \
194
+ '--fraction=[Fraction of each selected word to emphasize (0 through 1)]:FRACTION:_default' \
195
+ '--every=[Emphasize the first eligible word and then every Nth word]:EVERY:_default' \
196
+ '--min-word-length=[Minimum number of letters a word must have to receive emphasis]:MIN_WORD_LENGTH:_default' \
197
+ '--style=[When to apply emphasis\: automatically for terminals, always, or never]:STYLE:((auto\:"Enable emphasis when output is a terminal"
198
+ always\:"Enable emphasis regardless of the output destination"
199
+ never\:"Disable added emphasis; configured format and input-control processing still apply"))' \
200
+ '--config=[Read an explicit TOML configuration file]:CONFIG:_files' \
201
+ '*--exclude=[Add a command name to the interactive passthrough exclusions]:EXCLUDE:_default' \
202
+ '--profile=[Named fixation preference; explicit numeric flags override its values]:PROFILE:((subtle\:"Emphasize fewer, longer words with a shorter prefix"
203
+ balanced\:"Emphasize half of each eligible word"
204
+ strong\:"Emphasize a longer prefix of every eligible word"))' \
205
+ '*--length-rule=[Per-length fraction in MAX\:FRACTION form; repeat in increasing MAX order]:LENGTH_RULES:_default' \
206
+ '--emphasis=[Emphasis attribute\: bold, underline, or reverse video]:EMPHASIS:((bold\:"Use bold intensity, restoring the original bold and faint attributes"
207
+ underline\:"Use underlining without changing text colors or intensity"
208
+ reverse\:"Use reverse video without selecting a brighter foreground color"))' \
209
+ '--input-format=[Interpret ordinary text, Markdown source, or trusted terminal output]:INPUT_FORMAT:((text\:"Ordinary text with the configured terminal-control policy"
210
+ markdown\:"\`CommonMark\` source with protected syntax and code spans"
211
+ terminal\:"Trusted terminal output whose existing controls must be preserved"))' \
212
+ '--format=[Emit ANSI, unstyled plain text, Markdown emphasis, or escaped HTML]:FORMAT:((ansi\:"Terminal emphasis, subject to the style policy"
213
+ plain\:"Original text without terminal escape sequences or added emphasis"
214
+ markdown\:"Markdown source with emphasis syntax around selected prefixes"
215
+ html\:"Escaped HTML with semantic emphasis elements"))' \
216
+ '--controls=[Remove active document controls, or preserve trusted terminal controls]:CONTROLS:((safe\:"Permit presentation styling and safe hyperlinks; remove active controls"
217
+ preserve\:"Preserve terminal control bytes for trusted sources"))' \
218
+ '--skip-code=[Protect Markdown code from emphasis (default true); use --skip-code=false to include it]::SKIP_CODE:(true false)' \
219
+ '--low-latency=[Flush stalled partial words unchanged after 50 ms; disables content-only determinism]::LOW_LATENCY:(true false)' \
220
+ '-h[Print help (see more with '\''--help'\'')]' \
221
+ '--help[Print help (see more with '\''--help'\'')]' \
222
+ ':shell:(bash zsh fish)' \
223
+ && ret=0
224
+ ;;
225
+ (on)
226
+ _arguments "${_arguments_options[@]}" : \
227
+ '--fraction=[Fraction of each selected word to emphasize (0 through 1)]:FRACTION:_default' \
228
+ '--every=[Emphasize the first eligible word and then every Nth word]:EVERY:_default' \
229
+ '--min-word-length=[Minimum number of letters a word must have to receive emphasis]:MIN_WORD_LENGTH:_default' \
230
+ '--style=[When to apply emphasis\: automatically for terminals, always, or never]:STYLE:((auto\:"Enable emphasis when output is a terminal"
231
+ always\:"Enable emphasis regardless of the output destination"
232
+ never\:"Disable added emphasis; configured format and input-control processing still apply"))' \
233
+ '--config=[Read an explicit TOML configuration file]:CONFIG:_files' \
234
+ '*--exclude=[Add a command name to the interactive passthrough exclusions]:EXCLUDE:_default' \
235
+ '--profile=[Named fixation preference; explicit numeric flags override its values]:PROFILE:((subtle\:"Emphasize fewer, longer words with a shorter prefix"
236
+ balanced\:"Emphasize half of each eligible word"
237
+ strong\:"Emphasize a longer prefix of every eligible word"))' \
238
+ '*--length-rule=[Per-length fraction in MAX\:FRACTION form; repeat in increasing MAX order]:LENGTH_RULES:_default' \
239
+ '--emphasis=[Emphasis attribute\: bold, underline, or reverse video]:EMPHASIS:((bold\:"Use bold intensity, restoring the original bold and faint attributes"
240
+ underline\:"Use underlining without changing text colors or intensity"
241
+ reverse\:"Use reverse video without selecting a brighter foreground color"))' \
242
+ '--input-format=[Interpret ordinary text, Markdown source, or trusted terminal output]:INPUT_FORMAT:((text\:"Ordinary text with the configured terminal-control policy"
243
+ markdown\:"\`CommonMark\` source with protected syntax and code spans"
244
+ terminal\:"Trusted terminal output whose existing controls must be preserved"))' \
245
+ '--format=[Emit ANSI, unstyled plain text, Markdown emphasis, or escaped HTML]:FORMAT:((ansi\:"Terminal emphasis, subject to the style policy"
246
+ plain\:"Original text without terminal escape sequences or added emphasis"
247
+ markdown\:"Markdown source with emphasis syntax around selected prefixes"
248
+ html\:"Escaped HTML with semantic emphasis elements"))' \
249
+ '--controls=[Remove active document controls, or preserve trusted terminal controls]:CONTROLS:((safe\:"Permit presentation styling and safe hyperlinks; remove active controls"
250
+ preserve\:"Preserve terminal control bytes for trusted sources"))' \
251
+ '--skip-code=[Protect Markdown code from emphasis (default true); use --skip-code=false to include it]::SKIP_CODE:(true false)' \
252
+ '--low-latency=[Flush stalled partial words unchanged after 50 ms; disables content-only determinism]::LOW_LATENCY:(true false)' \
253
+ '-h[Print help (see more with '\''--help'\'')]' \
254
+ '--help[Print help (see more with '\''--help'\'')]' \
255
+ && ret=0
256
+ ;;
257
+ (off)
258
+ _arguments "${_arguments_options[@]}" : \
259
+ '--fraction=[Fraction of each selected word to emphasize (0 through 1)]:FRACTION:_default' \
260
+ '--every=[Emphasize the first eligible word and then every Nth word]:EVERY:_default' \
261
+ '--min-word-length=[Minimum number of letters a word must have to receive emphasis]:MIN_WORD_LENGTH:_default' \
262
+ '--style=[When to apply emphasis\: automatically for terminals, always, or never]:STYLE:((auto\:"Enable emphasis when output is a terminal"
263
+ always\:"Enable emphasis regardless of the output destination"
264
+ never\:"Disable added emphasis; configured format and input-control processing still apply"))' \
265
+ '--config=[Read an explicit TOML configuration file]:CONFIG:_files' \
266
+ '*--exclude=[Add a command name to the interactive passthrough exclusions]:EXCLUDE:_default' \
267
+ '--profile=[Named fixation preference; explicit numeric flags override its values]:PROFILE:((subtle\:"Emphasize fewer, longer words with a shorter prefix"
268
+ balanced\:"Emphasize half of each eligible word"
269
+ strong\:"Emphasize a longer prefix of every eligible word"))' \
270
+ '*--length-rule=[Per-length fraction in MAX\:FRACTION form; repeat in increasing MAX order]:LENGTH_RULES:_default' \
271
+ '--emphasis=[Emphasis attribute\: bold, underline, or reverse video]:EMPHASIS:((bold\:"Use bold intensity, restoring the original bold and faint attributes"
272
+ underline\:"Use underlining without changing text colors or intensity"
273
+ reverse\:"Use reverse video without selecting a brighter foreground color"))' \
274
+ '--input-format=[Interpret ordinary text, Markdown source, or trusted terminal output]:INPUT_FORMAT:((text\:"Ordinary text with the configured terminal-control policy"
275
+ markdown\:"\`CommonMark\` source with protected syntax and code spans"
276
+ terminal\:"Trusted terminal output whose existing controls must be preserved"))' \
277
+ '--format=[Emit ANSI, unstyled plain text, Markdown emphasis, or escaped HTML]:FORMAT:((ansi\:"Terminal emphasis, subject to the style policy"
278
+ plain\:"Original text without terminal escape sequences or added emphasis"
279
+ markdown\:"Markdown source with emphasis syntax around selected prefixes"
280
+ html\:"Escaped HTML with semantic emphasis elements"))' \
281
+ '--controls=[Remove active document controls, or preserve trusted terminal controls]:CONTROLS:((safe\:"Permit presentation styling and safe hyperlinks; remove active controls"
282
+ preserve\:"Preserve terminal control bytes for trusted sources"))' \
283
+ '--skip-code=[Protect Markdown code from emphasis (default true); use --skip-code=false to include it]::SKIP_CODE:(true false)' \
284
+ '--low-latency=[Flush stalled partial words unchanged after 50 ms; disables content-only determinism]::LOW_LATENCY:(true false)' \
285
+ '-h[Print help (see more with '\''--help'\'')]' \
286
+ '--help[Print help (see more with '\''--help'\'')]' \
287
+ && ret=0
288
+ ;;
289
+ (toggle)
290
+ _arguments "${_arguments_options[@]}" : \
291
+ '--fraction=[Fraction of each selected word to emphasize (0 through 1)]:FRACTION:_default' \
292
+ '--every=[Emphasize the first eligible word and then every Nth word]:EVERY:_default' \
293
+ '--min-word-length=[Minimum number of letters a word must have to receive emphasis]:MIN_WORD_LENGTH:_default' \
294
+ '--style=[When to apply emphasis\: automatically for terminals, always, or never]:STYLE:((auto\:"Enable emphasis when output is a terminal"
295
+ always\:"Enable emphasis regardless of the output destination"
296
+ never\:"Disable added emphasis; configured format and input-control processing still apply"))' \
297
+ '--config=[Read an explicit TOML configuration file]:CONFIG:_files' \
298
+ '*--exclude=[Add a command name to the interactive passthrough exclusions]:EXCLUDE:_default' \
299
+ '--profile=[Named fixation preference; explicit numeric flags override its values]:PROFILE:((subtle\:"Emphasize fewer, longer words with a shorter prefix"
300
+ balanced\:"Emphasize half of each eligible word"
301
+ strong\:"Emphasize a longer prefix of every eligible word"))' \
302
+ '*--length-rule=[Per-length fraction in MAX\:FRACTION form; repeat in increasing MAX order]:LENGTH_RULES:_default' \
303
+ '--emphasis=[Emphasis attribute\: bold, underline, or reverse video]:EMPHASIS:((bold\:"Use bold intensity, restoring the original bold and faint attributes"
304
+ underline\:"Use underlining without changing text colors or intensity"
305
+ reverse\:"Use reverse video without selecting a brighter foreground color"))' \
306
+ '--input-format=[Interpret ordinary text, Markdown source, or trusted terminal output]:INPUT_FORMAT:((text\:"Ordinary text with the configured terminal-control policy"
307
+ markdown\:"\`CommonMark\` source with protected syntax and code spans"
308
+ terminal\:"Trusted terminal output whose existing controls must be preserved"))' \
309
+ '--format=[Emit ANSI, unstyled plain text, Markdown emphasis, or escaped HTML]:FORMAT:((ansi\:"Terminal emphasis, subject to the style policy"
310
+ plain\:"Original text without terminal escape sequences or added emphasis"
311
+ markdown\:"Markdown source with emphasis syntax around selected prefixes"
312
+ html\:"Escaped HTML with semantic emphasis elements"))' \
313
+ '--controls=[Remove active document controls, or preserve trusted terminal controls]:CONTROLS:((safe\:"Permit presentation styling and safe hyperlinks; remove active controls"
314
+ preserve\:"Preserve terminal control bytes for trusted sources"))' \
315
+ '--skip-code=[Protect Markdown code from emphasis (default true); use --skip-code=false to include it]::SKIP_CODE:(true false)' \
316
+ '--low-latency=[Flush stalled partial words unchanged after 50 ms; disables content-only determinism]::LOW_LATENCY:(true false)' \
317
+ '-h[Print help (see more with '\''--help'\'')]' \
318
+ '--help[Print help (see more with '\''--help'\'')]' \
319
+ && ret=0
320
+ ;;
321
+ (reload)
322
+ _arguments "${_arguments_options[@]}" : \
323
+ '--fraction=[Fraction of each selected word to emphasize (0 through 1)]:FRACTION:_default' \
324
+ '--every=[Emphasize the first eligible word and then every Nth word]:EVERY:_default' \
325
+ '--min-word-length=[Minimum number of letters a word must have to receive emphasis]:MIN_WORD_LENGTH:_default' \
326
+ '--style=[When to apply emphasis\: automatically for terminals, always, or never]:STYLE:((auto\:"Enable emphasis when output is a terminal"
327
+ always\:"Enable emphasis regardless of the output destination"
328
+ never\:"Disable added emphasis; configured format and input-control processing still apply"))' \
329
+ '--config=[Read an explicit TOML configuration file]:CONFIG:_files' \
330
+ '*--exclude=[Add a command name to the interactive passthrough exclusions]:EXCLUDE:_default' \
331
+ '--profile=[Named fixation preference; explicit numeric flags override its values]:PROFILE:((subtle\:"Emphasize fewer, longer words with a shorter prefix"
332
+ balanced\:"Emphasize half of each eligible word"
333
+ strong\:"Emphasize a longer prefix of every eligible word"))' \
334
+ '*--length-rule=[Per-length fraction in MAX\:FRACTION form; repeat in increasing MAX order]:LENGTH_RULES:_default' \
335
+ '--emphasis=[Emphasis attribute\: bold, underline, or reverse video]:EMPHASIS:((bold\:"Use bold intensity, restoring the original bold and faint attributes"
336
+ underline\:"Use underlining without changing text colors or intensity"
337
+ reverse\:"Use reverse video without selecting a brighter foreground color"))' \
338
+ '--input-format=[Interpret ordinary text, Markdown source, or trusted terminal output]:INPUT_FORMAT:((text\:"Ordinary text with the configured terminal-control policy"
339
+ markdown\:"\`CommonMark\` source with protected syntax and code spans"
340
+ terminal\:"Trusted terminal output whose existing controls must be preserved"))' \
341
+ '--format=[Emit ANSI, unstyled plain text, Markdown emphasis, or escaped HTML]:FORMAT:((ansi\:"Terminal emphasis, subject to the style policy"
342
+ plain\:"Original text without terminal escape sequences or added emphasis"
343
+ markdown\:"Markdown source with emphasis syntax around selected prefixes"
344
+ html\:"Escaped HTML with semantic emphasis elements"))' \
345
+ '--controls=[Remove active document controls, or preserve trusted terminal controls]:CONTROLS:((safe\:"Permit presentation styling and safe hyperlinks; remove active controls"
346
+ preserve\:"Preserve terminal control bytes for trusted sources"))' \
347
+ '--skip-code=[Protect Markdown code from emphasis (default true); use --skip-code=false to include it]::SKIP_CODE:(true false)' \
348
+ '--low-latency=[Flush stalled partial words unchanged after 50 ms; disables content-only determinism]::LOW_LATENCY:(true false)' \
349
+ '-h[Print help (see more with '\''--help'\'')]' \
350
+ '--help[Print help (see more with '\''--help'\'')]' \
351
+ && ret=0
352
+ ;;
353
+ (bypass)
354
+ _arguments "${_arguments_options[@]}" : \
355
+ '--fraction=[Fraction of each selected word to emphasize (0 through 1)]:FRACTION:_default' \
356
+ '--every=[Emphasize the first eligible word and then every Nth word]:EVERY:_default' \
357
+ '--min-word-length=[Minimum number of letters a word must have to receive emphasis]:MIN_WORD_LENGTH:_default' \
358
+ '--style=[When to apply emphasis\: automatically for terminals, always, or never]:STYLE:((auto\:"Enable emphasis when output is a terminal"
359
+ always\:"Enable emphasis regardless of the output destination"
360
+ never\:"Disable added emphasis; configured format and input-control processing still apply"))' \
361
+ '--config=[Read an explicit TOML configuration file]:CONFIG:_files' \
362
+ '*--exclude=[Add a command name to the interactive passthrough exclusions]:EXCLUDE:_default' \
363
+ '--profile=[Named fixation preference; explicit numeric flags override its values]:PROFILE:((subtle\:"Emphasize fewer, longer words with a shorter prefix"
364
+ balanced\:"Emphasize half of each eligible word"
365
+ strong\:"Emphasize a longer prefix of every eligible word"))' \
366
+ '*--length-rule=[Per-length fraction in MAX\:FRACTION form; repeat in increasing MAX order]:LENGTH_RULES:_default' \
367
+ '--emphasis=[Emphasis attribute\: bold, underline, or reverse video]:EMPHASIS:((bold\:"Use bold intensity, restoring the original bold and faint attributes"
368
+ underline\:"Use underlining without changing text colors or intensity"
369
+ reverse\:"Use reverse video without selecting a brighter foreground color"))' \
370
+ '--input-format=[Interpret ordinary text, Markdown source, or trusted terminal output]:INPUT_FORMAT:((text\:"Ordinary text with the configured terminal-control policy"
371
+ markdown\:"\`CommonMark\` source with protected syntax and code spans"
372
+ terminal\:"Trusted terminal output whose existing controls must be preserved"))' \
373
+ '--format=[Emit ANSI, unstyled plain text, Markdown emphasis, or escaped HTML]:FORMAT:((ansi\:"Terminal emphasis, subject to the style policy"
374
+ plain\:"Original text without terminal escape sequences or added emphasis"
375
+ markdown\:"Markdown source with emphasis syntax around selected prefixes"
376
+ html\:"Escaped HTML with semantic emphasis elements"))' \
377
+ '--controls=[Remove active document controls, or preserve trusted terminal controls]:CONTROLS:((safe\:"Permit presentation styling and safe hyperlinks; remove active controls"
378
+ preserve\:"Preserve terminal control bytes for trusted sources"))' \
379
+ '--skip-code=[Protect Markdown code from emphasis (default true); use --skip-code=false to include it]::SKIP_CODE:(true false)' \
380
+ '--low-latency=[Flush stalled partial words unchanged after 50 ms; disables content-only determinism]::LOW_LATENCY:(true false)' \
381
+ '-h[Print help (see more with '\''--help'\'')]' \
382
+ '--help[Print help (see more with '\''--help'\'')]' \
383
+ '*::command:_default' \
384
+ && ret=0
385
+ ;;
386
+ (help)
387
+ _arguments "${_arguments_options[@]}" : \
388
+ ":: :_bionic-reader__subcmd__help_commands" \
389
+ "*::: :->help" \
390
+ && ret=0
391
+
392
+ case $state in
393
+ (help)
394
+ words=($line[1] "${words[@]}")
395
+ (( CURRENT += 1 ))
396
+ curcontext="${curcontext%:*:*}:bionic-reader-help-command-$line[1]:"
397
+ case $line[1] in
398
+ (read)
399
+ _arguments "${_arguments_options[@]}" : \
400
+ && ret=0
401
+ ;;
402
+ (preview)
403
+ _arguments "${_arguments_options[@]}" : \
404
+ && ret=0
405
+ ;;
406
+ (session)
407
+ _arguments "${_arguments_options[@]}" : \
408
+ && ret=0
409
+ ;;
410
+ (init)
411
+ _arguments "${_arguments_options[@]}" : \
412
+ && ret=0
413
+ ;;
414
+ (completions)
415
+ _arguments "${_arguments_options[@]}" : \
416
+ && ret=0
417
+ ;;
418
+ (on)
419
+ _arguments "${_arguments_options[@]}" : \
420
+ && ret=0
421
+ ;;
422
+ (off)
423
+ _arguments "${_arguments_options[@]}" : \
424
+ && ret=0
425
+ ;;
426
+ (toggle)
427
+ _arguments "${_arguments_options[@]}" : \
428
+ && ret=0
429
+ ;;
430
+ (reload)
431
+ _arguments "${_arguments_options[@]}" : \
432
+ && ret=0
433
+ ;;
434
+ (bypass)
435
+ _arguments "${_arguments_options[@]}" : \
436
+ && ret=0
437
+ ;;
438
+ (help)
439
+ _arguments "${_arguments_options[@]}" : \
440
+ && ret=0
441
+ ;;
442
+ esac
443
+ ;;
444
+ esac
445
+ ;;
446
+ esac
447
+ ;;
448
+ esac
449
+ }
450
+
451
+ (( $+functions[_bionic-reader_commands] )) ||
452
+ _bionic-reader_commands() {
453
+ local commands; commands=(
454
+ 'read:Read a document with scrolling, search, and adjustable fixation settings' \
455
+ 'preview:Preview fixation settings on a sample passage or supplied text' \
456
+ 'session:Start an interactive reading session' \
457
+ 'init:Print an opt-in initialization snippet for your shell configuration' \
458
+ 'completions:Print completion definitions for your shell' \
459
+ 'on:Enable emphasis in the current reading session' \
460
+ 'off:Disable emphasis in the current reading session' \
461
+ 'toggle:Toggle emphasis in the current reading session' \
462
+ 'reload:Reload settings at the next shell command boundary' \
463
+ 'bypass:Run a command without emphasis, restoring the prior state afterward' \
464
+ 'help:Print this message or the help of the given subcommand(s)' \
465
+ )
466
+ _describe -t commands 'bionic-reader commands' commands "$@"
467
+ }
468
+ (( $+functions[_bionic-reader__subcmd__bypass_commands] )) ||
469
+ _bionic-reader__subcmd__bypass_commands() {
470
+ local commands; commands=()
471
+ _describe -t commands 'bionic-reader bypass commands' commands "$@"
472
+ }
473
+ (( $+functions[_bionic-reader__subcmd__completions_commands] )) ||
474
+ _bionic-reader__subcmd__completions_commands() {
475
+ local commands; commands=()
476
+ _describe -t commands 'bionic-reader completions commands' commands "$@"
477
+ }
478
+ (( $+functions[_bionic-reader__subcmd__help_commands] )) ||
479
+ _bionic-reader__subcmd__help_commands() {
480
+ local commands; commands=(
481
+ 'read:Read a document with scrolling, search, and adjustable fixation settings' \
482
+ 'preview:Preview fixation settings on a sample passage or supplied text' \
483
+ 'session:Start an interactive reading session' \
484
+ 'init:Print an opt-in initialization snippet for your shell configuration' \
485
+ 'completions:Print completion definitions for your shell' \
486
+ 'on:Enable emphasis in the current reading session' \
487
+ 'off:Disable emphasis in the current reading session' \
488
+ 'toggle:Toggle emphasis in the current reading session' \
489
+ 'reload:Reload settings at the next shell command boundary' \
490
+ 'bypass:Run a command without emphasis, restoring the prior state afterward' \
491
+ 'help:Print this message or the help of the given subcommand(s)' \
492
+ )
493
+ _describe -t commands 'bionic-reader help commands' commands "$@"
494
+ }
495
+ (( $+functions[_bionic-reader__subcmd__help__subcmd__bypass_commands] )) ||
496
+ _bionic-reader__subcmd__help__subcmd__bypass_commands() {
497
+ local commands; commands=()
498
+ _describe -t commands 'bionic-reader help bypass commands' commands "$@"
499
+ }
500
+ (( $+functions[_bionic-reader__subcmd__help__subcmd__completions_commands] )) ||
501
+ _bionic-reader__subcmd__help__subcmd__completions_commands() {
502
+ local commands; commands=()
503
+ _describe -t commands 'bionic-reader help completions commands' commands "$@"
504
+ }
505
+ (( $+functions[_bionic-reader__subcmd__help__subcmd__help_commands] )) ||
506
+ _bionic-reader__subcmd__help__subcmd__help_commands() {
507
+ local commands; commands=()
508
+ _describe -t commands 'bionic-reader help help commands' commands "$@"
509
+ }
510
+ (( $+functions[_bionic-reader__subcmd__help__subcmd__init_commands] )) ||
511
+ _bionic-reader__subcmd__help__subcmd__init_commands() {
512
+ local commands; commands=()
513
+ _describe -t commands 'bionic-reader help init commands' commands "$@"
514
+ }
515
+ (( $+functions[_bionic-reader__subcmd__help__subcmd__off_commands] )) ||
516
+ _bionic-reader__subcmd__help__subcmd__off_commands() {
517
+ local commands; commands=()
518
+ _describe -t commands 'bionic-reader help off commands' commands "$@"
519
+ }
520
+ (( $+functions[_bionic-reader__subcmd__help__subcmd__on_commands] )) ||
521
+ _bionic-reader__subcmd__help__subcmd__on_commands() {
522
+ local commands; commands=()
523
+ _describe -t commands 'bionic-reader help on commands' commands "$@"
524
+ }
525
+ (( $+functions[_bionic-reader__subcmd__help__subcmd__preview_commands] )) ||
526
+ _bionic-reader__subcmd__help__subcmd__preview_commands() {
527
+ local commands; commands=()
528
+ _describe -t commands 'bionic-reader help preview commands' commands "$@"
529
+ }
530
+ (( $+functions[_bionic-reader__subcmd__help__subcmd__read_commands] )) ||
531
+ _bionic-reader__subcmd__help__subcmd__read_commands() {
532
+ local commands; commands=()
533
+ _describe -t commands 'bionic-reader help read commands' commands "$@"
534
+ }
535
+ (( $+functions[_bionic-reader__subcmd__help__subcmd__reload_commands] )) ||
536
+ _bionic-reader__subcmd__help__subcmd__reload_commands() {
537
+ local commands; commands=()
538
+ _describe -t commands 'bionic-reader help reload commands' commands "$@"
539
+ }
540
+ (( $+functions[_bionic-reader__subcmd__help__subcmd__session_commands] )) ||
541
+ _bionic-reader__subcmd__help__subcmd__session_commands() {
542
+ local commands; commands=()
543
+ _describe -t commands 'bionic-reader help session commands' commands "$@"
544
+ }
545
+ (( $+functions[_bionic-reader__subcmd__help__subcmd__toggle_commands] )) ||
546
+ _bionic-reader__subcmd__help__subcmd__toggle_commands() {
547
+ local commands; commands=()
548
+ _describe -t commands 'bionic-reader help toggle commands' commands "$@"
549
+ }
550
+ (( $+functions[_bionic-reader__subcmd__init_commands] )) ||
551
+ _bionic-reader__subcmd__init_commands() {
552
+ local commands; commands=()
553
+ _describe -t commands 'bionic-reader init commands' commands "$@"
554
+ }
555
+ (( $+functions[_bionic-reader__subcmd__off_commands] )) ||
556
+ _bionic-reader__subcmd__off_commands() {
557
+ local commands; commands=()
558
+ _describe -t commands 'bionic-reader off commands' commands "$@"
559
+ }
560
+ (( $+functions[_bionic-reader__subcmd__on_commands] )) ||
561
+ _bionic-reader__subcmd__on_commands() {
562
+ local commands; commands=()
563
+ _describe -t commands 'bionic-reader on commands' commands "$@"
564
+ }
565
+ (( $+functions[_bionic-reader__subcmd__preview_commands] )) ||
566
+ _bionic-reader__subcmd__preview_commands() {
567
+ local commands; commands=()
568
+ _describe -t commands 'bionic-reader preview commands' commands "$@"
569
+ }
570
+ (( $+functions[_bionic-reader__subcmd__read_commands] )) ||
571
+ _bionic-reader__subcmd__read_commands() {
572
+ local commands; commands=()
573
+ _describe -t commands 'bionic-reader read commands' commands "$@"
574
+ }
575
+ (( $+functions[_bionic-reader__subcmd__reload_commands] )) ||
576
+ _bionic-reader__subcmd__reload_commands() {
577
+ local commands; commands=()
578
+ _describe -t commands 'bionic-reader reload commands' commands "$@"
579
+ }
580
+ (( $+functions[_bionic-reader__subcmd__session_commands] )) ||
581
+ _bionic-reader__subcmd__session_commands() {
582
+ local commands; commands=()
583
+ _describe -t commands 'bionic-reader session commands' commands "$@"
584
+ }
585
+ (( $+functions[_bionic-reader__subcmd__toggle_commands] )) ||
586
+ _bionic-reader__subcmd__toggle_commands() {
587
+ local commands; commands=()
588
+ _describe -t commands 'bionic-reader toggle commands' commands "$@"
589
+ }
590
+
591
+ if [ "$funcstack[1]" = "_bionic-reader" ]; then
592
+ _bionic-reader "$@"
593
+ else
594
+ compdef _bionic-reader bionic-reader
595
+ fi