diff options
Diffstat (limited to 'zsh/_himalaya.zsh')
-rw-r--r-- | zsh/_himalaya.zsh | 1830 |
1 files changed, 1830 insertions, 0 deletions
diff --git a/zsh/_himalaya.zsh b/zsh/_himalaya.zsh new file mode 100644 index 0000000..9e61972 --- /dev/null +++ b/zsh/_himalaya.zsh | |||
@@ -0,0 +1,1830 @@ | |||
1 | #compdef himalaya | ||
2 | |||
3 | autoload -U is-at-least | ||
4 | |||
5 | _himalaya() { | ||
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 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
19 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
20 | '-a+[Set the account]:STRING: ' \ | ||
21 | '--account=[Set the account]:STRING: ' \ | ||
22 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
23 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
24 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
25 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
26 | '-f+[Set the source folder]:SOURCE: ' \ | ||
27 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
28 | '--disable-cache[Disable any sort of cache]' \ | ||
29 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
30 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
31 | '-V[Print version]' \ | ||
32 | '--version[Print version]' \ | ||
33 | ":: :_himalaya_commands" \ | ||
34 | "*::: :->himalaya" \ | ||
35 | && ret=0 | ||
36 | case $state in | ||
37 | (himalaya) | ||
38 | words=($line[1] "${words[@]}") | ||
39 | (( CURRENT += 1 )) | ||
40 | curcontext="${curcontext%:*:*}:himalaya-command-$line[1]:" | ||
41 | case $line[1] in | ||
42 | (completion) | ||
43 | _arguments "${_arguments_options[@]}" \ | ||
44 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
45 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
46 | '-a+[Set the account]:STRING: ' \ | ||
47 | '--account=[Set the account]:STRING: ' \ | ||
48 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
49 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
50 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
51 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
52 | '-f+[Set the source folder]:SOURCE: ' \ | ||
53 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
54 | '--disable-cache[Disable any sort of cache]' \ | ||
55 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
56 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
57 | '-V[Print version]' \ | ||
58 | '--version[Print version]' \ | ||
59 | ':shell:(bash elvish fish powershell zsh)' \ | ||
60 | && ret=0 | ||
61 | ;; | ||
62 | (man) | ||
63 | _arguments "${_arguments_options[@]}" \ | ||
64 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
65 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
66 | '-a+[Set the account]:STRING: ' \ | ||
67 | '--account=[Set the account]:STRING: ' \ | ||
68 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
69 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
70 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
71 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
72 | '-f+[Set the source folder]:SOURCE: ' \ | ||
73 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
74 | '--disable-cache[Disable any sort of cache]' \ | ||
75 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
76 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
77 | '-V[Print version]' \ | ||
78 | '--version[Print version]' \ | ||
79 | ':dir -- Directory to generate man files in:' \ | ||
80 | && ret=0 | ||
81 | ;; | ||
82 | (accounts) | ||
83 | _arguments "${_arguments_options[@]}" \ | ||
84 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
85 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
86 | '-a+[Set the account]:STRING: ' \ | ||
87 | '--account=[Set the account]:STRING: ' \ | ||
88 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
89 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
90 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
91 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
92 | '-f+[Set the source folder]:SOURCE: ' \ | ||
93 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
94 | '--disable-cache[Disable any sort of cache]' \ | ||
95 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
96 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
97 | '-V[Print version]' \ | ||
98 | '--version[Print version]' \ | ||
99 | ":: :_himalaya__accounts_commands" \ | ||
100 | "*::: :->accounts" \ | ||
101 | && ret=0 | ||
102 | |||
103 | case $state in | ||
104 | (accounts) | ||
105 | words=($line[1] "${words[@]}") | ||
106 | (( CURRENT += 1 )) | ||
107 | curcontext="${curcontext%:*:*}:himalaya-accounts-command-$line[1]:" | ||
108 | case $line[1] in | ||
109 | (list) | ||
110 | _arguments "${_arguments_options[@]}" \ | ||
111 | '-w+[Defines a maximum width for the table]:INT: ' \ | ||
112 | '--max-width=[Defines a maximum width for the table]:INT: ' \ | ||
113 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
114 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
115 | '-a+[Set the account]:STRING: ' \ | ||
116 | '--account=[Set the account]:STRING: ' \ | ||
117 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
118 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
119 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
120 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
121 | '-f+[Set the source folder]:SOURCE: ' \ | ||
122 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
123 | '--disable-cache[Disable any sort of cache]' \ | ||
124 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
125 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
126 | '-V[Print version]' \ | ||
127 | '--version[Print version]' \ | ||
128 | && ret=0 | ||
129 | ;; | ||
130 | (sync) | ||
131 | _arguments "${_arguments_options[@]}" \ | ||
132 | '(-f --folder -A --all-folders -x --exclude-folder)*-F+[Synchronize only the given folders]:FOLDER: ' \ | ||
133 | '(-f --folder -A --all-folders -x --exclude-folder)*--include-folder=[Synchronize only the given folders]:FOLDER: ' \ | ||
134 | '(-f --folder -A --all-folders -F --include-folder)*-x+[Synchronize all folders except the given ones]:FOLDER: ' \ | ||
135 | '(-f --folder -A --all-folders -F --include-folder)*--exclude-folder=[Synchronize all folders except the given ones]:FOLDER: ' \ | ||
136 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
137 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
138 | '-a+[Set the account]:STRING: ' \ | ||
139 | '--account=[Set the account]:STRING: ' \ | ||
140 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
141 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
142 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
143 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
144 | '-f+[Set the source folder]:SOURCE: ' \ | ||
145 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
146 | '(-f --folder -F --include-folder -x --exclude-folder)-A[Synchronize all folders]' \ | ||
147 | '(-f --folder -F --include-folder -x --exclude-folder)--all-folders[Synchronize all folders]' \ | ||
148 | '-d[Do not apply changes of the synchronization]' \ | ||
149 | '--dry-run[Do not apply changes of the synchronization]' \ | ||
150 | '--disable-cache[Disable any sort of cache]' \ | ||
151 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
152 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
153 | '-V[Print version]' \ | ||
154 | '--version[Print version]' \ | ||
155 | && ret=0 | ||
156 | ;; | ||
157 | (configure) | ||
158 | _arguments "${_arguments_options[@]}" \ | ||
159 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
160 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
161 | '-a+[Set the account]:STRING: ' \ | ||
162 | '--account=[Set the account]:STRING: ' \ | ||
163 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
164 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
165 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
166 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
167 | '-f+[Set the source folder]:SOURCE: ' \ | ||
168 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
169 | '-r[Reset the configuration]' \ | ||
170 | '--reset[Reset the configuration]' \ | ||
171 | '--disable-cache[Disable any sort of cache]' \ | ||
172 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
173 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
174 | '-V[Print version]' \ | ||
175 | '--version[Print version]' \ | ||
176 | && ret=0 | ||
177 | ;; | ||
178 | (help) | ||
179 | _arguments "${_arguments_options[@]}" \ | ||
180 | ":: :_himalaya__accounts__help_commands" \ | ||
181 | "*::: :->help" \ | ||
182 | && ret=0 | ||
183 | |||
184 | case $state in | ||
185 | (help) | ||
186 | words=($line[1] "${words[@]}") | ||
187 | (( CURRENT += 1 )) | ||
188 | curcontext="${curcontext%:*:*}:himalaya-accounts-help-command-$line[1]:" | ||
189 | case $line[1] in | ||
190 | (list) | ||
191 | _arguments "${_arguments_options[@]}" \ | ||
192 | && ret=0 | ||
193 | ;; | ||
194 | (sync) | ||
195 | _arguments "${_arguments_options[@]}" \ | ||
196 | && ret=0 | ||
197 | ;; | ||
198 | (configure) | ||
199 | _arguments "${_arguments_options[@]}" \ | ||
200 | && ret=0 | ||
201 | ;; | ||
202 | (help) | ||
203 | _arguments "${_arguments_options[@]}" \ | ||
204 | && ret=0 | ||
205 | ;; | ||
206 | esac | ||
207 | ;; | ||
208 | esac | ||
209 | ;; | ||
210 | esac | ||
211 | ;; | ||
212 | esac | ||
213 | ;; | ||
214 | (folders) | ||
215 | _arguments "${_arguments_options[@]}" \ | ||
216 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
217 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
218 | '-a+[Set the account]:STRING: ' \ | ||
219 | '--account=[Set the account]:STRING: ' \ | ||
220 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
221 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
222 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
223 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
224 | '-f+[Set the source folder]:SOURCE: ' \ | ||
225 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
226 | '--disable-cache[Disable any sort of cache]' \ | ||
227 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
228 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
229 | '-V[Print version]' \ | ||
230 | '--version[Print version]' \ | ||
231 | ":: :_himalaya__folders_commands" \ | ||
232 | "*::: :->folders" \ | ||
233 | && ret=0 | ||
234 | |||
235 | case $state in | ||
236 | (folders) | ||
237 | words=($line[1] "${words[@]}") | ||
238 | (( CURRENT += 1 )) | ||
239 | curcontext="${curcontext%:*:*}:himalaya-folders-command-$line[1]:" | ||
240 | case $line[1] in | ||
241 | (expunge) | ||
242 | _arguments "${_arguments_options[@]}" \ | ||
243 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
244 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
245 | '-a+[Set the account]:STRING: ' \ | ||
246 | '--account=[Set the account]:STRING: ' \ | ||
247 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
248 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
249 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
250 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
251 | '-f+[Set the source folder]:SOURCE: ' \ | ||
252 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
253 | '--disable-cache[Disable any sort of cache]' \ | ||
254 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
255 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
256 | '-V[Print version]' \ | ||
257 | '--version[Print version]' \ | ||
258 | && ret=0 | ||
259 | ;; | ||
260 | (create) | ||
261 | _arguments "${_arguments_options[@]}" \ | ||
262 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
263 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
264 | '-a+[Set the account]:STRING: ' \ | ||
265 | '--account=[Set the account]:STRING: ' \ | ||
266 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
267 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
268 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
269 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
270 | '-f+[Set the source folder]:SOURCE: ' \ | ||
271 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
272 | '--disable-cache[Disable any sort of cache]' \ | ||
273 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
274 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
275 | '-V[Print version]' \ | ||
276 | '--version[Print version]' \ | ||
277 | && ret=0 | ||
278 | ;; | ||
279 | (list) | ||
280 | _arguments "${_arguments_options[@]}" \ | ||
281 | '-w+[Defines a maximum width for the table]:INT: ' \ | ||
282 | '--max-width=[Defines a maximum width for the table]:INT: ' \ | ||
283 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
284 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
285 | '-a+[Set the account]:STRING: ' \ | ||
286 | '--account=[Set the account]:STRING: ' \ | ||
287 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
288 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
289 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
290 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
291 | '-f+[Set the source folder]:SOURCE: ' \ | ||
292 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
293 | '--disable-cache[Disable any sort of cache]' \ | ||
294 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
295 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
296 | '-V[Print version]' \ | ||
297 | '--version[Print version]' \ | ||
298 | && ret=0 | ||
299 | ;; | ||
300 | (delete) | ||
301 | _arguments "${_arguments_options[@]}" \ | ||
302 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
303 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
304 | '-a+[Set the account]:STRING: ' \ | ||
305 | '--account=[Set the account]:STRING: ' \ | ||
306 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
307 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
308 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
309 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
310 | '-f+[Set the source folder]:SOURCE: ' \ | ||
311 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
312 | '--disable-cache[Disable any sort of cache]' \ | ||
313 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
314 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
315 | '-V[Print version]' \ | ||
316 | '--version[Print version]' \ | ||
317 | && ret=0 | ||
318 | ;; | ||
319 | (help) | ||
320 | _arguments "${_arguments_options[@]}" \ | ||
321 | ":: :_himalaya__folders__help_commands" \ | ||
322 | "*::: :->help" \ | ||
323 | && ret=0 | ||
324 | |||
325 | case $state in | ||
326 | (help) | ||
327 | words=($line[1] "${words[@]}") | ||
328 | (( CURRENT += 1 )) | ||
329 | curcontext="${curcontext%:*:*}:himalaya-folders-help-command-$line[1]:" | ||
330 | case $line[1] in | ||
331 | (expunge) | ||
332 | _arguments "${_arguments_options[@]}" \ | ||
333 | && ret=0 | ||
334 | ;; | ||
335 | (create) | ||
336 | _arguments "${_arguments_options[@]}" \ | ||
337 | && ret=0 | ||
338 | ;; | ||
339 | (list) | ||
340 | _arguments "${_arguments_options[@]}" \ | ||
341 | && ret=0 | ||
342 | ;; | ||
343 | (delete) | ||
344 | _arguments "${_arguments_options[@]}" \ | ||
345 | && ret=0 | ||
346 | ;; | ||
347 | (help) | ||
348 | _arguments "${_arguments_options[@]}" \ | ||
349 | && ret=0 | ||
350 | ;; | ||
351 | esac | ||
352 | ;; | ||
353 | esac | ||
354 | ;; | ||
355 | esac | ||
356 | ;; | ||
357 | esac | ||
358 | ;; | ||
359 | (flags) | ||
360 | _arguments "${_arguments_options[@]}" \ | ||
361 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
362 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
363 | '-a+[Set the account]:STRING: ' \ | ||
364 | '--account=[Set the account]:STRING: ' \ | ||
365 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
366 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
367 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
368 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
369 | '-f+[Set the source folder]:SOURCE: ' \ | ||
370 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
371 | '--disable-cache[Disable any sort of cache]' \ | ||
372 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
373 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
374 | '-V[Print version]' \ | ||
375 | '--version[Print version]' \ | ||
376 | ":: :_himalaya__flags_commands" \ | ||
377 | "*::: :->flags" \ | ||
378 | && ret=0 | ||
379 | |||
380 | case $state in | ||
381 | (flags) | ||
382 | words=($line[1] "${words[@]}") | ||
383 | (( CURRENT += 1 )) | ||
384 | curcontext="${curcontext%:*:*}:himalaya-flags-command-$line[1]:" | ||
385 | case $line[1] in | ||
386 | (add) | ||
387 | _arguments "${_arguments_options[@]}" \ | ||
388 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
389 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
390 | '-a+[Set the account]:STRING: ' \ | ||
391 | '--account=[Set the account]:STRING: ' \ | ||
392 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
393 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
394 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
395 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
396 | '-f+[Set the source folder]:SOURCE: ' \ | ||
397 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
398 | '--disable-cache[Disable any sort of cache]' \ | ||
399 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
400 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
401 | '-V[Print version]' \ | ||
402 | '--version[Print version]' \ | ||
403 | '*::ids -- Email ids:' \ | ||
404 | '*::flag -- The flags:' \ | ||
405 | && ret=0 | ||
406 | ;; | ||
407 | (remove) | ||
408 | _arguments "${_arguments_options[@]}" \ | ||
409 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
410 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
411 | '-a+[Set the account]:STRING: ' \ | ||
412 | '--account=[Set the account]:STRING: ' \ | ||
413 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
414 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
415 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
416 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
417 | '-f+[Set the source folder]:SOURCE: ' \ | ||
418 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
419 | '--disable-cache[Disable any sort of cache]' \ | ||
420 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
421 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
422 | '-V[Print version]' \ | ||
423 | '--version[Print version]' \ | ||
424 | '*::ids -- Email ids:' \ | ||
425 | '*::flag -- The flags:' \ | ||
426 | && ret=0 | ||
427 | ;; | ||
428 | (set) | ||
429 | _arguments "${_arguments_options[@]}" \ | ||
430 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
431 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
432 | '-a+[Set the account]:STRING: ' \ | ||
433 | '--account=[Set the account]:STRING: ' \ | ||
434 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
435 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
436 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
437 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
438 | '-f+[Set the source folder]:SOURCE: ' \ | ||
439 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
440 | '--disable-cache[Disable any sort of cache]' \ | ||
441 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
442 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
443 | '-V[Print version]' \ | ||
444 | '--version[Print version]' \ | ||
445 | '*::ids -- Email ids:' \ | ||
446 | '*::flag -- The flags:' \ | ||
447 | && ret=0 | ||
448 | ;; | ||
449 | (help) | ||
450 | _arguments "${_arguments_options[@]}" \ | ||
451 | ":: :_himalaya__flags__help_commands" \ | ||
452 | "*::: :->help" \ | ||
453 | && ret=0 | ||
454 | |||
455 | case $state in | ||
456 | (help) | ||
457 | words=($line[1] "${words[@]}") | ||
458 | (( CURRENT += 1 )) | ||
459 | curcontext="${curcontext%:*:*}:himalaya-flags-help-command-$line[1]:" | ||
460 | case $line[1] in | ||
461 | (add) | ||
462 | _arguments "${_arguments_options[@]}" \ | ||
463 | && ret=0 | ||
464 | ;; | ||
465 | (remove) | ||
466 | _arguments "${_arguments_options[@]}" \ | ||
467 | && ret=0 | ||
468 | ;; | ||
469 | (set) | ||
470 | _arguments "${_arguments_options[@]}" \ | ||
471 | && ret=0 | ||
472 | ;; | ||
473 | (help) | ||
474 | _arguments "${_arguments_options[@]}" \ | ||
475 | && ret=0 | ||
476 | ;; | ||
477 | esac | ||
478 | ;; | ||
479 | esac | ||
480 | ;; | ||
481 | esac | ||
482 | ;; | ||
483 | esac | ||
484 | ;; | ||
485 | (template) | ||
486 | _arguments "${_arguments_options[@]}" \ | ||
487 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
488 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
489 | '-a+[Set the account]:STRING: ' \ | ||
490 | '--account=[Set the account]:STRING: ' \ | ||
491 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
492 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
493 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
494 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
495 | '-f+[Set the source folder]:SOURCE: ' \ | ||
496 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
497 | '--disable-cache[Disable any sort of cache]' \ | ||
498 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
499 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
500 | '-V[Print version]' \ | ||
501 | '--version[Print version]' \ | ||
502 | ":: :_himalaya__template_commands" \ | ||
503 | "*::: :->template" \ | ||
504 | && ret=0 | ||
505 | |||
506 | case $state in | ||
507 | (template) | ||
508 | words=($line[1] "${words[@]}") | ||
509 | (( CURRENT += 1 )) | ||
510 | curcontext="${curcontext%:*:*}:himalaya-template-command-$line[1]:" | ||
511 | case $line[1] in | ||
512 | (forward) | ||
513 | _arguments "${_arguments_options[@]}" \ | ||
514 | '*-H+[Overrides a specific header]:KEY:VAL: ' \ | ||
515 | '*--header=[Overrides a specific header]:KEY:VAL: ' \ | ||
516 | '-B+[Overrides the body]:STRING: ' \ | ||
517 | '--body=[Overrides the body]:STRING: ' \ | ||
518 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
519 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
520 | '-a+[Set the account]:STRING: ' \ | ||
521 | '--account=[Set the account]:STRING: ' \ | ||
522 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
523 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
524 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
525 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
526 | '-f+[Set the source folder]:SOURCE: ' \ | ||
527 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
528 | '--disable-cache[Disable any sort of cache]' \ | ||
529 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
530 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
531 | '-V[Print version]' \ | ||
532 | '--version[Print version]' \ | ||
533 | ':id -- Specifies the target email:' \ | ||
534 | && ret=0 | ||
535 | ;; | ||
536 | (reply) | ||
537 | _arguments "${_arguments_options[@]}" \ | ||
538 | '*-H+[Overrides a specific header]:KEY:VAL: ' \ | ||
539 | '*--header=[Overrides a specific header]:KEY:VAL: ' \ | ||
540 | '-B+[Overrides the body]:STRING: ' \ | ||
541 | '--body=[Overrides the body]:STRING: ' \ | ||
542 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
543 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
544 | '-a+[Set the account]:STRING: ' \ | ||
545 | '--account=[Set the account]:STRING: ' \ | ||
546 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
547 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
548 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
549 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
550 | '-f+[Set the source folder]:SOURCE: ' \ | ||
551 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
552 | '-A[Include all recipients]' \ | ||
553 | '--all[Include all recipients]' \ | ||
554 | '--disable-cache[Disable any sort of cache]' \ | ||
555 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
556 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
557 | '-V[Print version]' \ | ||
558 | '--version[Print version]' \ | ||
559 | ':id -- Specifies the target email:' \ | ||
560 | && ret=0 | ||
561 | ;; | ||
562 | (save) | ||
563 | _arguments "${_arguments_options[@]}" \ | ||
564 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
565 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
566 | '-a+[Set the account]:STRING: ' \ | ||
567 | '--account=[Set the account]:STRING: ' \ | ||
568 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
569 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
570 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
571 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
572 | '-f+[Set the source folder]:SOURCE: ' \ | ||
573 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
574 | '--disable-cache[Disable any sort of cache]' \ | ||
575 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
576 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
577 | '-V[Print version]' \ | ||
578 | '--version[Print version]' \ | ||
579 | '*::template:' \ | ||
580 | && ret=0 | ||
581 | ;; | ||
582 | (send) | ||
583 | _arguments "${_arguments_options[@]}" \ | ||
584 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
585 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
586 | '-a+[Set the account]:STRING: ' \ | ||
587 | '--account=[Set the account]:STRING: ' \ | ||
588 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
589 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
590 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
591 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
592 | '-f+[Set the source folder]:SOURCE: ' \ | ||
593 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
594 | '--disable-cache[Disable any sort of cache]' \ | ||
595 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
596 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
597 | '-V[Print version]' \ | ||
598 | '--version[Print version]' \ | ||
599 | '*::template:' \ | ||
600 | && ret=0 | ||
601 | ;; | ||
602 | (write) | ||
603 | _arguments "${_arguments_options[@]}" \ | ||
604 | '*-H+[Overrides a specific header]:KEY:VAL: ' \ | ||
605 | '*--header=[Overrides a specific header]:KEY:VAL: ' \ | ||
606 | '-B+[Overrides the body]:STRING: ' \ | ||
607 | '--body=[Overrides the body]:STRING: ' \ | ||
608 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
609 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
610 | '-a+[Set the account]:STRING: ' \ | ||
611 | '--account=[Set the account]:STRING: ' \ | ||
612 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
613 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
614 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
615 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
616 | '-f+[Set the source folder]:SOURCE: ' \ | ||
617 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
618 | '--disable-cache[Disable any sort of cache]' \ | ||
619 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
620 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
621 | '-V[Print version]' \ | ||
622 | '--version[Print version]' \ | ||
623 | && ret=0 | ||
624 | ;; | ||
625 | (help) | ||
626 | _arguments "${_arguments_options[@]}" \ | ||
627 | ":: :_himalaya__template__help_commands" \ | ||
628 | "*::: :->help" \ | ||
629 | && ret=0 | ||
630 | |||
631 | case $state in | ||
632 | (help) | ||
633 | words=($line[1] "${words[@]}") | ||
634 | (( CURRENT += 1 )) | ||
635 | curcontext="${curcontext%:*:*}:himalaya-template-help-command-$line[1]:" | ||
636 | case $line[1] in | ||
637 | (forward) | ||
638 | _arguments "${_arguments_options[@]}" \ | ||
639 | && ret=0 | ||
640 | ;; | ||
641 | (reply) | ||
642 | _arguments "${_arguments_options[@]}" \ | ||
643 | && ret=0 | ||
644 | ;; | ||
645 | (save) | ||
646 | _arguments "${_arguments_options[@]}" \ | ||
647 | && ret=0 | ||
648 | ;; | ||
649 | (send) | ||
650 | _arguments "${_arguments_options[@]}" \ | ||
651 | && ret=0 | ||
652 | ;; | ||
653 | (write) | ||
654 | _arguments "${_arguments_options[@]}" \ | ||
655 | && ret=0 | ||
656 | ;; | ||
657 | (help) | ||
658 | _arguments "${_arguments_options[@]}" \ | ||
659 | && ret=0 | ||
660 | ;; | ||
661 | esac | ||
662 | ;; | ||
663 | esac | ||
664 | ;; | ||
665 | esac | ||
666 | ;; | ||
667 | esac | ||
668 | ;; | ||
669 | (attachments) | ||
670 | _arguments "${_arguments_options[@]}" \ | ||
671 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
672 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
673 | '-a+[Set the account]:STRING: ' \ | ||
674 | '--account=[Set the account]:STRING: ' \ | ||
675 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
676 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
677 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
678 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
679 | '-f+[Set the source folder]:SOURCE: ' \ | ||
680 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
681 | '--disable-cache[Disable any sort of cache]' \ | ||
682 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
683 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
684 | '-V[Print version]' \ | ||
685 | '--version[Print version]' \ | ||
686 | '*::ids -- Email ids:' \ | ||
687 | && ret=0 | ||
688 | ;; | ||
689 | (list) | ||
690 | _arguments "${_arguments_options[@]}" \ | ||
691 | '-s+[Page size]:INT: ' \ | ||
692 | '--page-size=[Page size]:INT: ' \ | ||
693 | '-p+[Page number]:INT: ' \ | ||
694 | '--page=[Page number]:INT: ' \ | ||
695 | '-w+[Defines a maximum width for the table]:INT: ' \ | ||
696 | '--max-width=[Defines a maximum width for the table]:INT: ' \ | ||
697 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
698 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
699 | '-a+[Set the account]:STRING: ' \ | ||
700 | '--account=[Set the account]:STRING: ' \ | ||
701 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
702 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
703 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
704 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
705 | '-f+[Set the source folder]:SOURCE: ' \ | ||
706 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
707 | '--disable-cache[Disable any sort of cache]' \ | ||
708 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
709 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
710 | '-V[Print version]' \ | ||
711 | '--version[Print version]' \ | ||
712 | && ret=0 | ||
713 | ;; | ||
714 | (search) | ||
715 | _arguments "${_arguments_options[@]}" \ | ||
716 | '-s+[Page size]:INT: ' \ | ||
717 | '--page-size=[Page size]:INT: ' \ | ||
718 | '-p+[Page number]:INT: ' \ | ||
719 | '--page=[Page number]:INT: ' \ | ||
720 | '-w+[Defines a maximum width for the table]:INT: ' \ | ||
721 | '--max-width=[Defines a maximum width for the table]:INT: ' \ | ||
722 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
723 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
724 | '-a+[Set the account]:STRING: ' \ | ||
725 | '--account=[Set the account]:STRING: ' \ | ||
726 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
727 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
728 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
729 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
730 | '-f+[Set the source folder]:SOURCE: ' \ | ||
731 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
732 | '--disable-cache[Disable any sort of cache]' \ | ||
733 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
734 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
735 | '-V[Print version]' \ | ||
736 | '--version[Print version]' \ | ||
737 | '*::query:' \ | ||
738 | && ret=0 | ||
739 | ;; | ||
740 | (sort) | ||
741 | _arguments "${_arguments_options[@]}" \ | ||
742 | '-s+[Page size]:INT: ' \ | ||
743 | '--page-size=[Page size]:INT: ' \ | ||
744 | '-p+[Page number]:INT: ' \ | ||
745 | '--page=[Page number]:INT: ' \ | ||
746 | '-w+[Defines a maximum width for the table]:INT: ' \ | ||
747 | '--max-width=[Defines a maximum width for the table]:INT: ' \ | ||
748 | '*-c+[Email sorting preferences]:CRITERION:ORDER:(arrival arrival:asc arrival:desc cc cc:asc cc:desc date date:asc date:desc from from:asc from:desc size size:asc size:desc subject subject:asc subject:desc to to:asc to:desc)' \ | ||
749 | '*--criterion=[Email sorting preferences]:CRITERION:ORDER:(arrival arrival:asc arrival:desc cc cc:asc cc:desc date date:asc date:desc from from:asc from:desc size size:asc size:desc subject subject:asc subject:desc to to:asc to:desc)' \ | ||
750 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
751 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
752 | '-a+[Set the account]:STRING: ' \ | ||
753 | '--account=[Set the account]:STRING: ' \ | ||
754 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
755 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
756 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
757 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
758 | '-f+[Set the source folder]:SOURCE: ' \ | ||
759 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
760 | '--disable-cache[Disable any sort of cache]' \ | ||
761 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
762 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
763 | '-V[Print version]' \ | ||
764 | '--version[Print version]' \ | ||
765 | '*::query:' \ | ||
766 | && ret=0 | ||
767 | ;; | ||
768 | (write) | ||
769 | _arguments "${_arguments_options[@]}" \ | ||
770 | '*-H+[Overrides a specific header]:KEY:VAL: ' \ | ||
771 | '*--header=[Overrides a specific header]:KEY:VAL: ' \ | ||
772 | '-B+[Overrides the body]:STRING: ' \ | ||
773 | '--body=[Overrides the body]:STRING: ' \ | ||
774 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
775 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
776 | '-a+[Set the account]:STRING: ' \ | ||
777 | '--account=[Set the account]:STRING: ' \ | ||
778 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
779 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
780 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
781 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
782 | '-f+[Set the source folder]:SOURCE: ' \ | ||
783 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
784 | '--disable-cache[Disable any sort of cache]' \ | ||
785 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
786 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
787 | '-V[Print version]' \ | ||
788 | '--version[Print version]' \ | ||
789 | && ret=0 | ||
790 | ;; | ||
791 | (send) | ||
792 | _arguments "${_arguments_options[@]}" \ | ||
793 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
794 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
795 | '-a+[Set the account]:STRING: ' \ | ||
796 | '--account=[Set the account]:STRING: ' \ | ||
797 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
798 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
799 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
800 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
801 | '-f+[Set the source folder]:SOURCE: ' \ | ||
802 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
803 | '--disable-cache[Disable any sort of cache]' \ | ||
804 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
805 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
806 | '-V[Print version]' \ | ||
807 | '--version[Print version]' \ | ||
808 | '*::raw:' \ | ||
809 | && ret=0 | ||
810 | ;; | ||
811 | (save) | ||
812 | _arguments "${_arguments_options[@]}" \ | ||
813 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
814 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
815 | '-a+[Set the account]:STRING: ' \ | ||
816 | '--account=[Set the account]:STRING: ' \ | ||
817 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
818 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
819 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
820 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
821 | '-f+[Set the source folder]:SOURCE: ' \ | ||
822 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
823 | '--disable-cache[Disable any sort of cache]' \ | ||
824 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
825 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
826 | '-V[Print version]' \ | ||
827 | '--version[Print version]' \ | ||
828 | '*::raw:' \ | ||
829 | && ret=0 | ||
830 | ;; | ||
831 | (read) | ||
832 | _arguments "${_arguments_options[@]}" \ | ||
833 | '-t+[MIME type to use]:MIME:(plain html)' \ | ||
834 | '--mime-type=[MIME type to use]:MIME:(plain html)' \ | ||
835 | '*-H+[Shows additional headers with the email]:STRING: ' \ | ||
836 | '*--header=[Shows additional headers with the email]:STRING: ' \ | ||
837 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
838 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
839 | '-a+[Set the account]:STRING: ' \ | ||
840 | '--account=[Set the account]:STRING: ' \ | ||
841 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
842 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
843 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
844 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
845 | '-f+[Set the source folder]:SOURCE: ' \ | ||
846 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
847 | '-r[Returns raw version of email]' \ | ||
848 | '--raw[Returns raw version of email]' \ | ||
849 | '--disable-cache[Disable any sort of cache]' \ | ||
850 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
851 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
852 | '-V[Print version]' \ | ||
853 | '--version[Print version]' \ | ||
854 | '*::ids -- Email ids:' \ | ||
855 | && ret=0 | ||
856 | ;; | ||
857 | (reply) | ||
858 | _arguments "${_arguments_options[@]}" \ | ||
859 | '*-H+[Overrides a specific header]:KEY:VAL: ' \ | ||
860 | '*--header=[Overrides a specific header]:KEY:VAL: ' \ | ||
861 | '-B+[Overrides the body]:STRING: ' \ | ||
862 | '--body=[Overrides the body]:STRING: ' \ | ||
863 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
864 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
865 | '-a+[Set the account]:STRING: ' \ | ||
866 | '--account=[Set the account]:STRING: ' \ | ||
867 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
868 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
869 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
870 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
871 | '-f+[Set the source folder]:SOURCE: ' \ | ||
872 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
873 | '-A[Include all recipients]' \ | ||
874 | '--all[Include all recipients]' \ | ||
875 | '--disable-cache[Disable any sort of cache]' \ | ||
876 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
877 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
878 | '-V[Print version]' \ | ||
879 | '--version[Print version]' \ | ||
880 | ':id -- Specifies the target email:' \ | ||
881 | && ret=0 | ||
882 | ;; | ||
883 | (forward) | ||
884 | _arguments "${_arguments_options[@]}" \ | ||
885 | '*-H+[Overrides a specific header]:KEY:VAL: ' \ | ||
886 | '*--header=[Overrides a specific header]:KEY:VAL: ' \ | ||
887 | '-B+[Overrides the body]:STRING: ' \ | ||
888 | '--body=[Overrides the body]:STRING: ' \ | ||
889 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
890 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
891 | '-a+[Set the account]:STRING: ' \ | ||
892 | '--account=[Set the account]:STRING: ' \ | ||
893 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
894 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
895 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
896 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
897 | '-f+[Set the source folder]:SOURCE: ' \ | ||
898 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
899 | '--disable-cache[Disable any sort of cache]' \ | ||
900 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
901 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
902 | '-V[Print version]' \ | ||
903 | '--version[Print version]' \ | ||
904 | ':id -- Specifies the target email:' \ | ||
905 | && ret=0 | ||
906 | ;; | ||
907 | (copy) | ||
908 | _arguments "${_arguments_options[@]}" \ | ||
909 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
910 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
911 | '-a+[Set the account]:STRING: ' \ | ||
912 | '--account=[Set the account]:STRING: ' \ | ||
913 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
914 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
915 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
916 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
917 | '-f+[Set the source folder]:SOURCE: ' \ | ||
918 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
919 | '--disable-cache[Disable any sort of cache]' \ | ||
920 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
921 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
922 | '-V[Print version]' \ | ||
923 | '--version[Print version]' \ | ||
924 | ':target -- Specifies the target folder:' \ | ||
925 | '*::ids -- Email ids:' \ | ||
926 | && ret=0 | ||
927 | ;; | ||
928 | (move) | ||
929 | _arguments "${_arguments_options[@]}" \ | ||
930 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
931 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
932 | '-a+[Set the account]:STRING: ' \ | ||
933 | '--account=[Set the account]:STRING: ' \ | ||
934 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
935 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
936 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
937 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
938 | '-f+[Set the source folder]:SOURCE: ' \ | ||
939 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
940 | '--disable-cache[Disable any sort of cache]' \ | ||
941 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
942 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
943 | '-V[Print version]' \ | ||
944 | '--version[Print version]' \ | ||
945 | ':target -- Specifies the target folder:' \ | ||
946 | '*::ids -- Email ids:' \ | ||
947 | && ret=0 | ||
948 | ;; | ||
949 | (delete) | ||
950 | _arguments "${_arguments_options[@]}" \ | ||
951 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
952 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
953 | '-a+[Set the account]:STRING: ' \ | ||
954 | '--account=[Set the account]:STRING: ' \ | ||
955 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
956 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
957 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
958 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
959 | '-f+[Set the source folder]:SOURCE: ' \ | ||
960 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
961 | '--disable-cache[Disable any sort of cache]' \ | ||
962 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
963 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
964 | '-V[Print version]' \ | ||
965 | '--version[Print version]' \ | ||
966 | '*::ids -- Email ids:' \ | ||
967 | && ret=0 | ||
968 | ;; | ||
969 | (notify) | ||
970 | _arguments "${_arguments_options[@]}" \ | ||
971 | '-k+[Specifies the keepalive duration.]:SECS: ' \ | ||
972 | '--keepalive=[Specifies the keepalive duration.]:SECS: ' \ | ||
973 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
974 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
975 | '-a+[Set the account]:STRING: ' \ | ||
976 | '--account=[Set the account]:STRING: ' \ | ||
977 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
978 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
979 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
980 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
981 | '-f+[Set the source folder]:SOURCE: ' \ | ||
982 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
983 | '--disable-cache[Disable any sort of cache]' \ | ||
984 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
985 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
986 | '-V[Print version]' \ | ||
987 | '--version[Print version]' \ | ||
988 | && ret=0 | ||
989 | ;; | ||
990 | (watch) | ||
991 | _arguments "${_arguments_options[@]}" \ | ||
992 | '-k+[Specifies the keepalive duration.]:SECS: ' \ | ||
993 | '--keepalive=[Specifies the keepalive duration.]:SECS: ' \ | ||
994 | '-c+[Set a custom configuration file path]:PATH: ' \ | ||
995 | '--config=[Set a custom configuration file path]:PATH: ' \ | ||
996 | '-a+[Set the account]:STRING: ' \ | ||
997 | '--account=[Set the account]:STRING: ' \ | ||
998 | '-o+[Set the output format]:FMT:(plain json)' \ | ||
999 | '--output=[Set the output format]:FMT:(plain json)' \ | ||
1000 | '-C+[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
1001 | '--color=[Control when to use colors.]:WHEN:(never auto always ansi)' \ | ||
1002 | '-f+[Set the source folder]:SOURCE: ' \ | ||
1003 | '--folder=[Set the source folder]:SOURCE: ' \ | ||
1004 | '--disable-cache[Disable any sort of cache]' \ | ||
1005 | '-h[Print help (see more with '\''--help'\'')]' \ | ||
1006 | '--help[Print help (see more with '\''--help'\'')]' \ | ||
1007 | '-V[Print version]' \ | ||
1008 | '--version[Print version]' \ | ||
1009 | && ret=0 | ||
1010 | ;; | ||
1011 | (help) | ||
1012 | _arguments "${_arguments_options[@]}" \ | ||
1013 | ":: :_himalaya__help_commands" \ | ||
1014 | "*::: :->help" \ | ||
1015 | && ret=0 | ||
1016 | |||
1017 | case $state in | ||
1018 | (help) | ||
1019 | words=($line[1] "${words[@]}") | ||
1020 | (( CURRENT += 1 )) | ||
1021 | curcontext="${curcontext%:*:*}:himalaya-help-command-$line[1]:" | ||
1022 | case $line[1] in | ||
1023 | (completion) | ||
1024 | _arguments "${_arguments_options[@]}" \ | ||
1025 | && ret=0 | ||
1026 | ;; | ||
1027 | (man) | ||
1028 | _arguments "${_arguments_options[@]}" \ | ||
1029 | && ret=0 | ||
1030 | ;; | ||
1031 | (accounts) | ||
1032 | _arguments "${_arguments_options[@]}" \ | ||
1033 | ":: :_himalaya__help__accounts_commands" \ | ||
1034 | "*::: :->accounts" \ | ||
1035 | && ret=0 | ||
1036 | |||
1037 | case $state in | ||
1038 | (accounts) | ||
1039 | words=($line[1] "${words[@]}") | ||
1040 | (( CURRENT += 1 )) | ||
1041 | curcontext="${curcontext%:*:*}:himalaya-help-accounts-command-$line[1]:" | ||
1042 | case $line[1] in | ||
1043 | (list) | ||
1044 | _arguments "${_arguments_options[@]}" \ | ||
1045 | && ret=0 | ||
1046 | ;; | ||
1047 | (sync) | ||
1048 | _arguments "${_arguments_options[@]}" \ | ||
1049 | && ret=0 | ||
1050 | ;; | ||
1051 | (configure) | ||
1052 | _arguments "${_arguments_options[@]}" \ | ||
1053 | && ret=0 | ||
1054 | ;; | ||
1055 | esac | ||
1056 | ;; | ||
1057 | esac | ||
1058 | ;; | ||
1059 | (folders) | ||
1060 | _arguments "${_arguments_options[@]}" \ | ||
1061 | ":: :_himalaya__help__folders_commands" \ | ||
1062 | "*::: :->folders" \ | ||
1063 | && ret=0 | ||
1064 | |||
1065 | case $state in | ||
1066 | (folders) | ||
1067 | words=($line[1] "${words[@]}") | ||
1068 | (( CURRENT += 1 )) | ||
1069 | curcontext="${curcontext%:*:*}:himalaya-help-folders-command-$line[1]:" | ||
1070 | case $line[1] in | ||
1071 | (expunge) | ||
1072 | _arguments "${_arguments_options[@]}" \ | ||
1073 | && ret=0 | ||
1074 | ;; | ||
1075 | (create) | ||
1076 | _arguments "${_arguments_options[@]}" \ | ||
1077 | && ret=0 | ||
1078 | ;; | ||
1079 | (list) | ||
1080 | _arguments "${_arguments_options[@]}" \ | ||
1081 | && ret=0 | ||
1082 | ;; | ||
1083 | (delete) | ||
1084 | _arguments "${_arguments_options[@]}" \ | ||
1085 | && ret=0 | ||
1086 | ;; | ||
1087 | esac | ||
1088 | ;; | ||
1089 | esac | ||
1090 | ;; | ||
1091 | (flags) | ||
1092 | _arguments "${_arguments_options[@]}" \ | ||
1093 | ":: :_himalaya__help__flags_commands" \ | ||
1094 | "*::: :->flags" \ | ||
1095 | && ret=0 | ||
1096 | |||
1097 | case $state in | ||
1098 | (flags) | ||
1099 | words=($line[1] "${words[@]}") | ||
1100 | (( CURRENT += 1 )) | ||
1101 | curcontext="${curcontext%:*:*}:himalaya-help-flags-command-$line[1]:" | ||
1102 | case $line[1] in | ||
1103 | (add) | ||
1104 | _arguments "${_arguments_options[@]}" \ | ||
1105 | && ret=0 | ||
1106 | ;; | ||
1107 | (remove) | ||
1108 | _arguments "${_arguments_options[@]}" \ | ||
1109 | && ret=0 | ||
1110 | ;; | ||
1111 | (set) | ||
1112 | _arguments "${_arguments_options[@]}" \ | ||
1113 | && ret=0 | ||
1114 | ;; | ||
1115 | esac | ||
1116 | ;; | ||
1117 | esac | ||
1118 | ;; | ||
1119 | (template) | ||
1120 | _arguments "${_arguments_options[@]}" \ | ||
1121 | ":: :_himalaya__help__template_commands" \ | ||
1122 | "*::: :->template" \ | ||
1123 | && ret=0 | ||
1124 | |||
1125 | case $state in | ||
1126 | (template) | ||
1127 | words=($line[1] "${words[@]}") | ||
1128 | (( CURRENT += 1 )) | ||
1129 | curcontext="${curcontext%:*:*}:himalaya-help-template-command-$line[1]:" | ||
1130 | case $line[1] in | ||
1131 | (forward) | ||
1132 | _arguments "${_arguments_options[@]}" \ | ||
1133 | && ret=0 | ||
1134 | ;; | ||
1135 | (reply) | ||
1136 | _arguments "${_arguments_options[@]}" \ | ||
1137 | && ret=0 | ||
1138 | ;; | ||
1139 | (save) | ||
1140 | _arguments "${_arguments_options[@]}" \ | ||
1141 | && ret=0 | ||
1142 | ;; | ||
1143 | (send) | ||
1144 | _arguments "${_arguments_options[@]}" \ | ||
1145 | && ret=0 | ||
1146 | ;; | ||
1147 | (write) | ||
1148 | _arguments "${_arguments_options[@]}" \ | ||
1149 | && ret=0 | ||
1150 | ;; | ||
1151 | esac | ||
1152 | ;; | ||
1153 | esac | ||
1154 | ;; | ||
1155 | (attachments) | ||
1156 | _arguments "${_arguments_options[@]}" \ | ||
1157 | && ret=0 | ||
1158 | ;; | ||
1159 | (list) | ||
1160 | _arguments "${_arguments_options[@]}" \ | ||
1161 | && ret=0 | ||
1162 | ;; | ||
1163 | (search) | ||
1164 | _arguments "${_arguments_options[@]}" \ | ||
1165 | && ret=0 | ||
1166 | ;; | ||
1167 | (sort) | ||
1168 | _arguments "${_arguments_options[@]}" \ | ||
1169 | && ret=0 | ||
1170 | ;; | ||
1171 | (write) | ||
1172 | _arguments "${_arguments_options[@]}" \ | ||
1173 | && ret=0 | ||
1174 | ;; | ||
1175 | (send) | ||
1176 | _arguments "${_arguments_options[@]}" \ | ||
1177 | && ret=0 | ||
1178 | ;; | ||
1179 | (save) | ||
1180 | _arguments "${_arguments_options[@]}" \ | ||
1181 | && ret=0 | ||
1182 | ;; | ||
1183 | (read) | ||
1184 | _arguments "${_arguments_options[@]}" \ | ||
1185 | && ret=0 | ||
1186 | ;; | ||
1187 | (reply) | ||
1188 | _arguments "${_arguments_options[@]}" \ | ||
1189 | && ret=0 | ||
1190 | ;; | ||
1191 | (forward) | ||
1192 | _arguments "${_arguments_options[@]}" \ | ||
1193 | && ret=0 | ||
1194 | ;; | ||
1195 | (copy) | ||
1196 | _arguments "${_arguments_options[@]}" \ | ||
1197 | && ret=0 | ||
1198 | ;; | ||
1199 | (move) | ||
1200 | _arguments "${_arguments_options[@]}" \ | ||
1201 | && ret=0 | ||
1202 | ;; | ||
1203 | (delete) | ||
1204 | _arguments "${_arguments_options[@]}" \ | ||
1205 | && ret=0 | ||
1206 | ;; | ||
1207 | (notify) | ||
1208 | _arguments "${_arguments_options[@]}" \ | ||
1209 | && ret=0 | ||
1210 | ;; | ||
1211 | (watch) | ||
1212 | _arguments "${_arguments_options[@]}" \ | ||
1213 | && ret=0 | ||
1214 | ;; | ||
1215 | (help) | ||
1216 | _arguments "${_arguments_options[@]}" \ | ||
1217 | && ret=0 | ||
1218 | ;; | ||
1219 | esac | ||
1220 | ;; | ||
1221 | esac | ||
1222 | ;; | ||
1223 | esac | ||
1224 | ;; | ||
1225 | esac | ||
1226 | } | ||
1227 | |||
1228 | (( $+functions[_himalaya_commands] )) || | ||
1229 | _himalaya_commands() { | ||
1230 | local commands; commands=( | ||
1231 | 'completion:Generates the completion script for the given shell' \ | ||
1232 | 'man:Generate all man pages to the given directory' \ | ||
1233 | 'accounts:Manage accounts' \ | ||
1234 | 'folders:Manage folders' \ | ||
1235 | 'flags:Handles email flags' \ | ||
1236 | 'template:Handles email templates' \ | ||
1237 | 'attachments:Downloads all emails attachments' \ | ||
1238 | 'list:List envelopes' \ | ||
1239 | 'search:Filter envelopes matching the given query' \ | ||
1240 | 'sort:Sort envelopes by the given criteria and matching the given query' \ | ||
1241 | 'write:Write a new email' \ | ||
1242 | 'send:Send a raw email' \ | ||
1243 | 'save:Save a raw email' \ | ||
1244 | 'read:Read text bodies of emails' \ | ||
1245 | 'reply:Answer to an email' \ | ||
1246 | 'forward:Forward an email' \ | ||
1247 | 'copy:Copy emails to the given folder' \ | ||
1248 | 'move:Move emails to the given folder' \ | ||
1249 | 'delete:Delete emails' \ | ||
1250 | 'notify:Notifies when new messages arrive in the given folder' \ | ||
1251 | 'watch:Watches IMAP server changes' \ | ||
1252 | 'help:Print this message or the help of the given subcommand(s)' \ | ||
1253 | ) | ||
1254 | _describe -t commands 'himalaya commands' commands "$@" | ||
1255 | } | ||
1256 | (( $+functions[_himalaya__accounts_commands] )) || | ||
1257 | _himalaya__accounts_commands() { | ||
1258 | local commands; commands=( | ||
1259 | 'list:List all accounts from the config file' \ | ||
1260 | 'sync:Synchronize the given account locally' \ | ||
1261 | 'configure:Configure the current selected account' \ | ||
1262 | 'help:Print this message or the help of the given subcommand(s)' \ | ||
1263 | ) | ||
1264 | _describe -t commands 'himalaya accounts commands' commands "$@" | ||
1265 | } | ||
1266 | (( $+functions[_himalaya__help__accounts_commands] )) || | ||
1267 | _himalaya__help__accounts_commands() { | ||
1268 | local commands; commands=( | ||
1269 | 'list:List all accounts from the config file' \ | ||
1270 | 'sync:Synchronize the given account locally' \ | ||
1271 | 'configure:Configure the current selected account' \ | ||
1272 | ) | ||
1273 | _describe -t commands 'himalaya help accounts commands' commands "$@" | ||
1274 | } | ||
1275 | (( $+functions[_himalaya__flags__add_commands] )) || | ||
1276 | _himalaya__flags__add_commands() { | ||
1277 | local commands; commands=() | ||
1278 | _describe -t commands 'himalaya flags add commands' commands "$@" | ||
1279 | } | ||
1280 | (( $+functions[_himalaya__flags__help__add_commands] )) || | ||
1281 | _himalaya__flags__help__add_commands() { | ||
1282 | local commands; commands=() | ||
1283 | _describe -t commands 'himalaya flags help add commands' commands "$@" | ||
1284 | } | ||
1285 | (( $+functions[_himalaya__help__flags__add_commands] )) || | ||
1286 | _himalaya__help__flags__add_commands() { | ||
1287 | local commands; commands=() | ||
1288 | _describe -t commands 'himalaya help flags add commands' commands "$@" | ||
1289 | } | ||
1290 | (( $+functions[_himalaya__attachments_commands] )) || | ||
1291 | _himalaya__attachments_commands() { | ||
1292 | local commands; commands=() | ||
1293 | _describe -t commands 'himalaya attachments commands' commands "$@" | ||
1294 | } | ||
1295 | (( $+functions[_himalaya__help__attachments_commands] )) || | ||
1296 | _himalaya__help__attachments_commands() { | ||
1297 | local commands; commands=() | ||
1298 | _describe -t commands 'himalaya help attachments commands' commands "$@" | ||
1299 | } | ||
1300 | (( $+functions[_himalaya__completion_commands] )) || | ||
1301 | _himalaya__completion_commands() { | ||
1302 | local commands; commands=() | ||
1303 | _describe -t commands 'himalaya completion commands' commands "$@" | ||
1304 | } | ||
1305 | (( $+functions[_himalaya__help__completion_commands] )) || | ||
1306 | _himalaya__help__completion_commands() { | ||
1307 | local commands; commands=() | ||
1308 | _describe -t commands 'himalaya help completion commands' commands "$@" | ||
1309 | } | ||
1310 | (( $+functions[_himalaya__accounts__configure_commands] )) || | ||
1311 | _himalaya__accounts__configure_commands() { | ||
1312 | local commands; commands=() | ||
1313 | _describe -t commands 'himalaya accounts configure commands' commands "$@" | ||
1314 | } | ||
1315 | (( $+functions[_himalaya__accounts__help__configure_commands] )) || | ||
1316 | _himalaya__accounts__help__configure_commands() { | ||
1317 | local commands; commands=() | ||
1318 | _describe -t commands 'himalaya accounts help configure commands' commands "$@" | ||
1319 | } | ||
1320 | (( $+functions[_himalaya__help__accounts__configure_commands] )) || | ||
1321 | _himalaya__help__accounts__configure_commands() { | ||
1322 | local commands; commands=() | ||
1323 | _describe -t commands 'himalaya help accounts configure commands' commands "$@" | ||
1324 | } | ||
1325 | (( $+functions[_himalaya__copy_commands] )) || | ||
1326 | _himalaya__copy_commands() { | ||
1327 | local commands; commands=() | ||
1328 | _describe -t commands 'himalaya copy commands' commands "$@" | ||
1329 | } | ||
1330 | (( $+functions[_himalaya__help__copy_commands] )) || | ||
1331 | _himalaya__help__copy_commands() { | ||
1332 | local commands; commands=() | ||
1333 | _describe -t commands 'himalaya help copy commands' commands "$@" | ||
1334 | } | ||
1335 | (( $+functions[_himalaya__folders__create_commands] )) || | ||
1336 | _himalaya__folders__create_commands() { | ||
1337 | local commands; commands=() | ||
1338 | _describe -t commands 'himalaya folders create commands' commands "$@" | ||
1339 | } | ||
1340 | (( $+functions[_himalaya__folders__help__create_commands] )) || | ||
1341 | _himalaya__folders__help__create_commands() { | ||
1342 | local commands; commands=() | ||
1343 | _describe -t commands 'himalaya folders help create commands' commands "$@" | ||
1344 | } | ||
1345 | (( $+functions[_himalaya__help__folders__create_commands] )) || | ||
1346 | _himalaya__help__folders__create_commands() { | ||
1347 | local commands; commands=() | ||
1348 | _describe -t commands 'himalaya help folders create commands' commands "$@" | ||
1349 | } | ||
1350 | (( $+functions[_himalaya__delete_commands] )) || | ||
1351 | _himalaya__delete_commands() { | ||
1352 | local commands; commands=() | ||
1353 | _describe -t commands 'himalaya delete commands' commands "$@" | ||
1354 | } | ||
1355 | (( $+functions[_himalaya__folders__delete_commands] )) || | ||
1356 | _himalaya__folders__delete_commands() { | ||
1357 | local commands; commands=() | ||
1358 | _describe -t commands 'himalaya folders delete commands' commands "$@" | ||
1359 | } | ||
1360 | (( $+functions[_himalaya__folders__help__delete_commands] )) || | ||
1361 | _himalaya__folders__help__delete_commands() { | ||
1362 | local commands; commands=() | ||
1363 | _describe -t commands 'himalaya folders help delete commands' commands "$@" | ||
1364 | } | ||
1365 | (( $+functions[_himalaya__help__delete_commands] )) || | ||
1366 | _himalaya__help__delete_commands() { | ||
1367 | local commands; commands=() | ||
1368 | _describe -t commands 'himalaya help delete commands' commands "$@" | ||
1369 | } | ||
1370 | (( $+functions[_himalaya__help__folders__delete_commands] )) || | ||
1371 | _himalaya__help__folders__delete_commands() { | ||
1372 | local commands; commands=() | ||
1373 | _describe -t commands 'himalaya help folders delete commands' commands "$@" | ||
1374 | } | ||
1375 | (( $+functions[_himalaya__folders__expunge_commands] )) || | ||
1376 | _himalaya__folders__expunge_commands() { | ||
1377 | local commands; commands=() | ||
1378 | _describe -t commands 'himalaya folders expunge commands' commands "$@" | ||
1379 | } | ||
1380 | (( $+functions[_himalaya__folders__help__expunge_commands] )) || | ||
1381 | _himalaya__folders__help__expunge_commands() { | ||
1382 | local commands; commands=() | ||
1383 | _describe -t commands 'himalaya folders help expunge commands' commands "$@" | ||
1384 | } | ||
1385 | (( $+functions[_himalaya__help__folders__expunge_commands] )) || | ||
1386 | _himalaya__help__folders__expunge_commands() { | ||
1387 | local commands; commands=() | ||
1388 | _describe -t commands 'himalaya help folders expunge commands' commands "$@" | ||
1389 | } | ||
1390 | (( $+functions[_himalaya__flags_commands] )) || | ||
1391 | _himalaya__flags_commands() { | ||
1392 | local commands; commands=( | ||
1393 | 'add:Adds flags to an email' \ | ||
1394 | 'remove:Removes flags from an email' \ | ||
1395 | 'set:Sets flags of an email' \ | ||
1396 | 'help:Print this message or the help of the given subcommand(s)' \ | ||
1397 | ) | ||
1398 | _describe -t commands 'himalaya flags commands' commands "$@" | ||
1399 | } | ||
1400 | (( $+functions[_himalaya__help__flags_commands] )) || | ||
1401 | _himalaya__help__flags_commands() { | ||
1402 | local commands; commands=( | ||
1403 | 'add:Adds flags to an email' \ | ||
1404 | 'remove:Removes flags from an email' \ | ||
1405 | 'set:Sets flags of an email' \ | ||
1406 | ) | ||
1407 | _describe -t commands 'himalaya help flags commands' commands "$@" | ||
1408 | } | ||
1409 | (( $+functions[_himalaya__folders_commands] )) || | ||
1410 | _himalaya__folders_commands() { | ||
1411 | local commands; commands=( | ||
1412 | 'expunge:Delete emails marked for deletion' \ | ||
1413 | 'create:Create a new folder' \ | ||
1414 | 'list:List folders' \ | ||
1415 | 'delete:Delete a folder with all its emails' \ | ||
1416 | 'help:Print this message or the help of the given subcommand(s)' \ | ||
1417 | ) | ||
1418 | _describe -t commands 'himalaya folders commands' commands "$@" | ||
1419 | } | ||
1420 | (( $+functions[_himalaya__help__folders_commands] )) || | ||
1421 | _himalaya__help__folders_commands() { | ||
1422 | local commands; commands=( | ||
1423 | 'expunge:Delete emails marked for deletion' \ | ||
1424 | 'create:Create a new folder' \ | ||
1425 | 'list:List folders' \ | ||
1426 | 'delete:Delete a folder with all its emails' \ | ||
1427 | ) | ||
1428 | _describe -t commands 'himalaya help folders commands' commands "$@" | ||
1429 | } | ||
1430 | (( $+functions[_himalaya__forward_commands] )) || | ||
1431 | _himalaya__forward_commands() { | ||
1432 | local commands; commands=() | ||
1433 | _describe -t commands 'himalaya forward commands' commands "$@" | ||
1434 | } | ||
1435 | (( $+functions[_himalaya__help__forward_commands] )) || | ||
1436 | _himalaya__help__forward_commands() { | ||
1437 | local commands; commands=() | ||
1438 | _describe -t commands 'himalaya help forward commands' commands "$@" | ||
1439 | } | ||
1440 | (( $+functions[_himalaya__help__template__forward_commands] )) || | ||
1441 | _himalaya__help__template__forward_commands() { | ||
1442 | local commands; commands=() | ||
1443 | _describe -t commands 'himalaya help template forward commands' commands "$@" | ||
1444 | } | ||
1445 | (( $+functions[_himalaya__template__forward_commands] )) || | ||
1446 | _himalaya__template__forward_commands() { | ||
1447 | local commands; commands=() | ||
1448 | _describe -t commands 'himalaya template forward commands' commands "$@" | ||
1449 | } | ||
1450 | (( $+functions[_himalaya__template__help__forward_commands] )) || | ||
1451 | _himalaya__template__help__forward_commands() { | ||
1452 | local commands; commands=() | ||
1453 | _describe -t commands 'himalaya template help forward commands' commands "$@" | ||
1454 | } | ||
1455 | (( $+functions[_himalaya__accounts__help_commands] )) || | ||
1456 | _himalaya__accounts__help_commands() { | ||
1457 | local commands; commands=( | ||
1458 | 'list:List all accounts from the config file' \ | ||
1459 | 'sync:Synchronize the given account locally' \ | ||
1460 | 'configure:Configure the current selected account' \ | ||
1461 | 'help:Print this message or the help of the given subcommand(s)' \ | ||
1462 | ) | ||
1463 | _describe -t commands 'himalaya accounts help commands' commands "$@" | ||
1464 | } | ||
1465 | (( $+functions[_himalaya__accounts__help__help_commands] )) || | ||
1466 | _himalaya__accounts__help__help_commands() { | ||
1467 | local commands; commands=() | ||
1468 | _describe -t commands 'himalaya accounts help help commands' commands "$@" | ||
1469 | } | ||
1470 | (( $+functions[_himalaya__flags__help_commands] )) || | ||
1471 | _himalaya__flags__help_commands() { | ||
1472 | local commands; commands=( | ||
1473 | 'add:Adds flags to an email' \ | ||
1474 | 'remove:Removes flags from an email' \ | ||
1475 | 'set:Sets flags of an email' \ | ||
1476 | 'help:Print this message or the help of the given subcommand(s)' \ | ||
1477 | ) | ||
1478 | _describe -t commands 'himalaya flags help commands' commands "$@" | ||
1479 | } | ||
1480 | (( $+functions[_himalaya__flags__help__help_commands] )) || | ||
1481 | _himalaya__flags__help__help_commands() { | ||
1482 | local commands; commands=() | ||
1483 | _describe -t commands 'himalaya flags help help commands' commands "$@" | ||
1484 | } | ||
1485 | (( $+functions[_himalaya__folders__help_commands] )) || | ||
1486 | _himalaya__folders__help_commands() { | ||
1487 | local commands; commands=( | ||
1488 | 'expunge:Delete emails marked for deletion' \ | ||
1489 | 'create:Create a new folder' \ | ||
1490 | 'list:List folders' \ | ||
1491 | 'delete:Delete a folder with all its emails' \ | ||
1492 | 'help:Print this message or the help of the given subcommand(s)' \ | ||
1493 | ) | ||
1494 | _describe -t commands 'himalaya folders help commands' commands "$@" | ||
1495 | } | ||
1496 | (( $+functions[_himalaya__folders__help__help_commands] )) || | ||
1497 | _himalaya__folders__help__help_commands() { | ||
1498 | local commands; commands=() | ||
1499 | _describe -t commands 'himalaya folders help help commands' commands "$@" | ||
1500 | } | ||
1501 | (( $+functions[_himalaya__help_commands] )) || | ||
1502 | _himalaya__help_commands() { | ||
1503 | local commands; commands=( | ||
1504 | 'completion:Generates the completion script for the given shell' \ | ||
1505 | 'man:Generate all man pages to the given directory' \ | ||
1506 | 'accounts:Manage accounts' \ | ||
1507 | 'folders:Manage folders' \ | ||
1508 | 'flags:Handles email flags' \ | ||
1509 | 'template:Handles email templates' \ | ||
1510 | 'attachments:Downloads all emails attachments' \ | ||
1511 | 'list:List envelopes' \ | ||
1512 | 'search:Filter envelopes matching the given query' \ | ||
1513 | 'sort:Sort envelopes by the given criteria and matching the given query' \ | ||
1514 | 'write:Write a new email' \ | ||
1515 | 'send:Send a raw email' \ | ||
1516 | 'save:Save a raw email' \ | ||
1517 | 'read:Read text bodies of emails' \ | ||
1518 | 'reply:Answer to an email' \ | ||
1519 | 'forward:Forward an email' \ | ||
1520 | 'copy:Copy emails to the given folder' \ | ||
1521 | 'move:Move emails to the given folder' \ | ||
1522 | 'delete:Delete emails' \ | ||
1523 | 'notify:Notifies when new messages arrive in the given folder' \ | ||
1524 | 'watch:Watches IMAP server changes' \ | ||
1525 | 'help:Print this message or the help of the given subcommand(s)' \ | ||
1526 | ) | ||
1527 | _describe -t commands 'himalaya help commands' commands "$@" | ||
1528 | } | ||
1529 | (( $+functions[_himalaya__help__help_commands] )) || | ||
1530 | _himalaya__help__help_commands() { | ||
1531 | local commands; commands=() | ||
1532 | _describe -t commands 'himalaya help help commands' commands "$@" | ||
1533 | } | ||
1534 | (( $+functions[_himalaya__template__help_commands] )) || | ||
1535 | _himalaya__template__help_commands() { | ||
1536 | local commands; commands=( | ||
1537 | 'forward:Generates a template for forwarding an email' \ | ||
1538 | 'reply:Generates a template for replying to an email' \ | ||
1539 | 'save:Compiles the template into a valid email then saves it' \ | ||
1540 | 'send:Compiles the template into a valid email then sends it' \ | ||
1541 | 'write:Generates a template for writing a new email' \ | ||
1542 | 'help:Print this message or the help of the given subcommand(s)' \ | ||
1543 | ) | ||
1544 | _describe -t commands 'himalaya template help commands' commands "$@" | ||
1545 | } | ||
1546 | (( $+functions[_himalaya__template__help__help_commands] )) || | ||
1547 | _himalaya__template__help__help_commands() { | ||
1548 | local commands; commands=() | ||
1549 | _describe -t commands 'himalaya template help help commands' commands "$@" | ||
1550 | } | ||
1551 | (( $+functions[_himalaya__accounts__help__list_commands] )) || | ||
1552 | _himalaya__accounts__help__list_commands() { | ||
1553 | local commands; commands=() | ||
1554 | _describe -t commands 'himalaya accounts help list commands' commands "$@" | ||
1555 | } | ||
1556 | (( $+functions[_himalaya__accounts__list_commands] )) || | ||
1557 | _himalaya__accounts__list_commands() { | ||
1558 | local commands; commands=() | ||
1559 | _describe -t commands 'himalaya accounts list commands' commands "$@" | ||
1560 | } | ||
1561 | (( $+functions[_himalaya__folders__help__list_commands] )) || | ||
1562 | _himalaya__folders__help__list_commands() { | ||
1563 | local commands; commands=() | ||
1564 | _describe -t commands 'himalaya folders help list commands' commands "$@" | ||
1565 | } | ||
1566 | (( $+functions[_himalaya__folders__list_commands] )) || | ||
1567 | _himalaya__folders__list_commands() { | ||
1568 | local commands; commands=() | ||
1569 | _describe -t commands 'himalaya folders list commands' commands "$@" | ||
1570 | } | ||
1571 | (( $+functions[_himalaya__help__accounts__list_commands] )) || | ||
1572 | _himalaya__help__accounts__list_commands() { | ||
1573 | local commands; commands=() | ||
1574 | _describe -t commands 'himalaya help accounts list commands' commands "$@" | ||
1575 | } | ||
1576 | (( $+functions[_himalaya__help__folders__list_commands] )) || | ||
1577 | _himalaya__help__folders__list_commands() { | ||
1578 | local commands; commands=() | ||
1579 | _describe -t commands 'himalaya help folders list commands' commands "$@" | ||
1580 | } | ||
1581 | (( $+functions[_himalaya__help__list_commands] )) || | ||
1582 | _himalaya__help__list_commands() { | ||
1583 | local commands; commands=() | ||
1584 | _describe -t commands 'himalaya help list commands' commands "$@" | ||
1585 | } | ||
1586 | (( $+functions[_himalaya__list_commands] )) || | ||
1587 | _himalaya__list_commands() { | ||
1588 | local commands; commands=() | ||
1589 | _describe -t commands 'himalaya list commands' commands "$@" | ||
1590 | } | ||
1591 | (( $+functions[_himalaya__help__man_commands] )) || | ||
1592 | _himalaya__help__man_commands() { | ||
1593 | local commands; commands=() | ||
1594 | _describe -t commands 'himalaya help man commands' commands "$@" | ||
1595 | } | ||
1596 | (( $+functions[_himalaya__man_commands] )) || | ||
1597 | _himalaya__man_commands() { | ||
1598 | local commands; commands=() | ||
1599 | _describe -t commands 'himalaya man commands' commands "$@" | ||
1600 | } | ||
1601 | (( $+functions[_himalaya__help__move_commands] )) || | ||
1602 | _himalaya__help__move_commands() { | ||
1603 | local commands; commands=() | ||
1604 | _describe -t commands 'himalaya help move commands' commands "$@" | ||
1605 | } | ||
1606 | (( $+functions[_himalaya__move_commands] )) || | ||
1607 | _himalaya__move_commands() { | ||
1608 | local commands; commands=() | ||
1609 | _describe -t commands 'himalaya move commands' commands "$@" | ||
1610 | } | ||
1611 | (( $+functions[_himalaya__help__notify_commands] )) || | ||
1612 | _himalaya__help__notify_commands() { | ||
1613 | local commands; commands=() | ||
1614 | _describe -t commands 'himalaya help notify commands' commands "$@" | ||
1615 | } | ||
1616 | (( $+functions[_himalaya__notify_commands] )) || | ||
1617 | _himalaya__notify_commands() { | ||
1618 | local commands; commands=() | ||
1619 | _describe -t commands 'himalaya notify commands' commands "$@" | ||
1620 | } | ||
1621 | (( $+functions[_himalaya__help__read_commands] )) || | ||
1622 | _himalaya__help__read_commands() { | ||
1623 | local commands; commands=() | ||
1624 | _describe -t commands 'himalaya help read commands' commands "$@" | ||
1625 | } | ||
1626 | (( $+functions[_himalaya__read_commands] )) || | ||
1627 | _himalaya__read_commands() { | ||
1628 | local commands; commands=() | ||
1629 | _describe -t commands 'himalaya read commands' commands "$@" | ||
1630 | } | ||
1631 | (( $+functions[_himalaya__flags__help__remove_commands] )) || | ||
1632 | _himalaya__flags__help__remove_commands() { | ||
1633 | local commands; commands=() | ||
1634 | _describe -t commands 'himalaya flags help remove commands' commands "$@" | ||
1635 | } | ||
1636 | (( $+functions[_himalaya__flags__remove_commands] )) || | ||
1637 | _himalaya__flags__remove_commands() { | ||
1638 | local commands; commands=() | ||
1639 | _describe -t commands 'himalaya flags remove commands' commands "$@" | ||
1640 | } | ||
1641 | (( $+functions[_himalaya__help__flags__remove_commands] )) || | ||
1642 | _himalaya__help__flags__remove_commands() { | ||
1643 | local commands; commands=() | ||
1644 | _describe -t commands 'himalaya help flags remove commands' commands "$@" | ||
1645 | } | ||
1646 | (( $+functions[_himalaya__help__reply_commands] )) || | ||
1647 | _himalaya__help__reply_commands() { | ||
1648 | local commands; commands=() | ||
1649 | _describe -t commands 'himalaya help reply commands' commands "$@" | ||
1650 | } | ||
1651 | (( $+functions[_himalaya__help__template__reply_commands] )) || | ||
1652 | _himalaya__help__template__reply_commands() { | ||
1653 | local commands; commands=() | ||
1654 | _describe -t commands 'himalaya help template reply commands' commands "$@" | ||
1655 | } | ||
1656 | (( $+functions[_himalaya__reply_commands] )) || | ||
1657 | _himalaya__reply_commands() { | ||
1658 | local commands; commands=() | ||
1659 | _describe -t commands 'himalaya reply commands' commands "$@" | ||
1660 | } | ||
1661 | (( $+functions[_himalaya__template__help__reply_commands] )) || | ||
1662 | _himalaya__template__help__reply_commands() { | ||
1663 | local commands; commands=() | ||
1664 | _describe -t commands 'himalaya template help reply commands' commands "$@" | ||
1665 | } | ||
1666 | (( $+functions[_himalaya__template__reply_commands] )) || | ||
1667 | _himalaya__template__reply_commands() { | ||
1668 | local commands; commands=() | ||
1669 | _describe -t commands 'himalaya template reply commands' commands "$@" | ||
1670 | } | ||
1671 | (( $+functions[_himalaya__help__save_commands] )) || | ||
1672 | _himalaya__help__save_commands() { | ||
1673 | local commands; commands=() | ||
1674 | _describe -t commands 'himalaya help save commands' commands "$@" | ||
1675 | } | ||
1676 | (( $+functions[_himalaya__help__template__save_commands] )) || | ||
1677 | _himalaya__help__template__save_commands() { | ||
1678 | local commands; commands=() | ||
1679 | _describe -t commands 'himalaya help template save commands' commands "$@" | ||
1680 | } | ||
1681 | (( $+functions[_himalaya__save_commands] )) || | ||
1682 | _himalaya__save_commands() { | ||
1683 | local commands; commands=() | ||
1684 | _describe -t commands 'himalaya save commands' commands "$@" | ||
1685 | } | ||
1686 | (( $+functions[_himalaya__template__help__save_commands] )) || | ||
1687 | _himalaya__template__help__save_commands() { | ||
1688 | local commands; commands=() | ||
1689 | _describe -t commands 'himalaya template help save commands' commands "$@" | ||
1690 | } | ||
1691 | (( $+functions[_himalaya__template__save_commands] )) || | ||
1692 | _himalaya__template__save_commands() { | ||
1693 | local commands; commands=() | ||
1694 | _describe -t commands 'himalaya template save commands' commands "$@" | ||
1695 | } | ||
1696 | (( $+functions[_himalaya__help__search_commands] )) || | ||
1697 | _himalaya__help__search_commands() { | ||
1698 | local commands; commands=() | ||
1699 | _describe -t commands 'himalaya help search commands' commands "$@" | ||
1700 | } | ||
1701 | (( $+functions[_himalaya__search_commands] )) || | ||
1702 | _himalaya__search_commands() { | ||
1703 | local commands; commands=() | ||
1704 | _describe -t commands 'himalaya search commands' commands "$@" | ||
1705 | } | ||
1706 | (( $+functions[_himalaya__help__send_commands] )) || | ||
1707 | _himalaya__help__send_commands() { | ||
1708 | local commands; commands=() | ||
1709 | _describe -t commands 'himalaya help send commands' commands "$@" | ||
1710 | } | ||
1711 | (( $+functions[_himalaya__help__template__send_commands] )) || | ||
1712 | _himalaya__help__template__send_commands() { | ||
1713 | local commands; commands=() | ||
1714 | _describe -t commands 'himalaya help template send commands' commands "$@" | ||
1715 | } | ||
1716 | (( $+functions[_himalaya__send_commands] )) || | ||
1717 | _himalaya__send_commands() { | ||
1718 | local commands; commands=() | ||
1719 | _describe -t commands 'himalaya send commands' commands "$@" | ||
1720 | } | ||
1721 | (( $+functions[_himalaya__template__help__send_commands] )) || | ||
1722 | _himalaya__template__help__send_commands() { | ||
1723 | local commands; commands=() | ||
1724 | _describe -t commands 'himalaya template help send commands' commands "$@" | ||
1725 | } | ||
1726 | (( $+functions[_himalaya__template__send_commands] )) || | ||
1727 | _himalaya__template__send_commands() { | ||
1728 | local commands; commands=() | ||
1729 | _describe -t commands 'himalaya template send commands' commands "$@" | ||
1730 | } | ||
1731 | (( $+functions[_himalaya__flags__help__set_commands] )) || | ||
1732 | _himalaya__flags__help__set_commands() { | ||
1733 | local commands; commands=() | ||
1734 | _describe -t commands 'himalaya flags help set commands' commands "$@" | ||
1735 | } | ||
1736 | (( $+functions[_himalaya__flags__set_commands] )) || | ||
1737 | _himalaya__flags__set_commands() { | ||
1738 | local commands; commands=() | ||
1739 | _describe -t commands 'himalaya flags set commands' commands "$@" | ||
1740 | } | ||
1741 | (( $+functions[_himalaya__help__flags__set_commands] )) || | ||
1742 | _himalaya__help__flags__set_commands() { | ||
1743 | local commands; commands=() | ||
1744 | _describe -t commands 'himalaya help flags set commands' commands "$@" | ||
1745 | } | ||
1746 | (( $+functions[_himalaya__help__sort_commands] )) || | ||
1747 | _himalaya__help__sort_commands() { | ||
1748 | local commands; commands=() | ||
1749 | _describe -t commands 'himalaya help sort commands' commands "$@" | ||
1750 | } | ||
1751 | (( $+functions[_himalaya__sort_commands] )) || | ||
1752 | _himalaya__sort_commands() { | ||
1753 | local commands; commands=() | ||
1754 | _describe -t commands 'himalaya sort commands' commands "$@" | ||
1755 | } | ||
1756 | (( $+functions[_himalaya__accounts__help__sync_commands] )) || | ||
1757 | _himalaya__accounts__help__sync_commands() { | ||
1758 | local commands; commands=() | ||
1759 | _describe -t commands 'himalaya accounts help sync commands' commands "$@" | ||
1760 | } | ||
1761 | (( $+functions[_himalaya__accounts__sync_commands] )) || | ||
1762 | _himalaya__accounts__sync_commands() { | ||
1763 | local commands; commands=() | ||
1764 | _describe -t commands 'himalaya accounts sync commands' commands "$@" | ||
1765 | } | ||
1766 | (( $+functions[_himalaya__help__accounts__sync_commands] )) || | ||
1767 | _himalaya__help__accounts__sync_commands() { | ||
1768 | local commands; commands=() | ||
1769 | _describe -t commands 'himalaya help accounts sync commands' commands "$@" | ||
1770 | } | ||
1771 | (( $+functions[_himalaya__help__template_commands] )) || | ||
1772 | _himalaya__help__template_commands() { | ||
1773 | local commands; commands=( | ||
1774 | 'forward:Generates a template for forwarding an email' \ | ||
1775 | 'reply:Generates a template for replying to an email' \ | ||
1776 | 'save:Compiles the template into a valid email then saves it' \ | ||
1777 | 'send:Compiles the template into a valid email then sends it' \ | ||
1778 | 'write:Generates a template for writing a new email' \ | ||
1779 | ) | ||
1780 | _describe -t commands 'himalaya help template commands' commands "$@" | ||
1781 | } | ||
1782 | (( $+functions[_himalaya__template_commands] )) || | ||
1783 | _himalaya__template_commands() { | ||
1784 | local commands; commands=( | ||
1785 | 'forward:Generates a template for forwarding an email' \ | ||
1786 | 'reply:Generates a template for replying to an email' \ | ||
1787 | 'save:Compiles the template into a valid email then saves it' \ | ||
1788 | 'send:Compiles the template into a valid email then sends it' \ | ||
1789 | 'write:Generates a template for writing a new email' \ | ||
1790 | 'help:Print this message or the help of the given subcommand(s)' \ | ||
1791 | ) | ||
1792 | _describe -t commands 'himalaya template commands' commands "$@" | ||
1793 | } | ||
1794 | (( $+functions[_himalaya__help__watch_commands] )) || | ||
1795 | _himalaya__help__watch_commands() { | ||
1796 | local commands; commands=() | ||
1797 | _describe -t commands 'himalaya help watch commands' commands "$@" | ||
1798 | } | ||
1799 | (( $+functions[_himalaya__watch_commands] )) || | ||
1800 | _himalaya__watch_commands() { | ||
1801 | local commands; commands=() | ||
1802 | _describe -t commands 'himalaya watch commands' commands "$@" | ||
1803 | } | ||
1804 | (( $+functions[_himalaya__help__template__write_commands] )) || | ||
1805 | _himalaya__help__template__write_commands() { | ||
1806 | local commands; commands=() | ||
1807 | _describe -t commands 'himalaya help template write commands' commands "$@" | ||
1808 | } | ||
1809 | (( $+functions[_himalaya__help__write_commands] )) || | ||
1810 | _himalaya__help__write_commands() { | ||
1811 | local commands; commands=() | ||
1812 | _describe -t commands 'himalaya help write commands' commands "$@" | ||
1813 | } | ||
1814 | (( $+functions[_himalaya__template__help__write_commands] )) || | ||
1815 | _himalaya__template__help__write_commands() { | ||
1816 | local commands; commands=() | ||
1817 | _describe -t commands 'himalaya template help write commands' commands "$@" | ||
1818 | } | ||
1819 | (( $+functions[_himalaya__template__write_commands] )) || | ||
1820 | _himalaya__template__write_commands() { | ||
1821 | local commands; commands=() | ||
1822 | _describe -t commands 'himalaya template write commands' commands "$@" | ||
1823 | } | ||
1824 | (( $+functions[_himalaya__write_commands] )) || | ||
1825 | _himalaya__write_commands() { | ||
1826 | local commands; commands=() | ||
1827 | _describe -t commands 'himalaya write commands' commands "$@" | ||
1828 | } | ||
1829 | |||
1830 | _himalaya "$@" | ||