_himalaya.zsh

   1#compdef himalaya
   2
   3autoload -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+[Override the default configuration file path]:PATH:_files' \
  19'*--config=[Override the default configuration file path]:PATH:_files' \
  20'-o+[Customize the output format]:FORMAT:(plain json)' \
  21'--output=[Customize the output format]:FORMAT:(plain json)' \
  22'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
  23'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
  24'(--trace)--debug[Enable logs with spantrace]' \
  25'(--debug)--trace[Enable verbose logs with backtrace]' \
  26'-h[Print help (see more with '\''--help'\'')]' \
  27'--help[Print help (see more with '\''--help'\'')]' \
  28'-V[Print version]' \
  29'--version[Print version]' \
  30":: :_himalaya_commands" \
  31"*::: :->himalaya" \
  32&& ret=0
  33    case $state in
  34    (himalaya)
  35        words=($line[1] "${words[@]}")
  36        (( CURRENT += 1 ))
  37        curcontext="${curcontext%:*:*}:himalaya-command-$line[1]:"
  38        case $line[1] in
  39            (account)
  40_arguments "${_arguments_options[@]}" \
  41'*-c+[Override the default configuration file path]:PATH:_files' \
  42'*--config=[Override the default configuration file path]:PATH:_files' \
  43'-o+[Customize the output format]:FORMAT:(plain json)' \
  44'--output=[Customize the output format]:FORMAT:(plain json)' \
  45'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
  46'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
  47'(--trace)--debug[Enable logs with spantrace]' \
  48'(--debug)--trace[Enable verbose logs with backtrace]' \
  49'-h[Print help (see more with '\''--help'\'')]' \
  50'--help[Print help (see more with '\''--help'\'')]' \
  51'-V[Print version]' \
  52'--version[Print version]' \
  53":: :_himalaya__account_commands" \
  54"*::: :->account" \
  55&& ret=0
  56
  57    case $state in
  58    (account)
  59        words=($line[1] "${words[@]}")
  60        (( CURRENT += 1 ))
  61        curcontext="${curcontext%:*:*}:himalaya-account-command-$line[1]:"
  62        case $line[1] in
  63            (check-up)
  64_arguments "${_arguments_options[@]}" \
  65'*-c+[Override the default configuration file path]:PATH:_files' \
  66'*--config=[Override the default configuration file path]:PATH:_files' \
  67'-o+[Customize the output format]:FORMAT:(plain json)' \
  68'--output=[Customize the output format]:FORMAT:(plain json)' \
  69'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
  70'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
  71'(--trace)--debug[Enable logs with spantrace]' \
  72'(--debug)--trace[Enable verbose logs with backtrace]' \
  73'-h[Print help (see more with '\''--help'\'')]' \
  74'--help[Print help (see more with '\''--help'\'')]' \
  75'-V[Print version]' \
  76'--version[Print version]' \
  77'::account_name -- The name of the account:' \
  78&& ret=0
  79;;
  80(configure)
  81_arguments "${_arguments_options[@]}" \
  82'*-c+[Override the default configuration file path]:PATH:_files' \
  83'*--config=[Override the default configuration file path]:PATH:_files' \
  84'-o+[Customize the output format]:FORMAT:(plain json)' \
  85'--output=[Customize the output format]:FORMAT:(plain json)' \
  86'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
  87'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
  88'-r[Reset keyring passwords]' \
  89'--reset[Reset keyring passwords]' \
  90'(--trace)--debug[Enable logs with spantrace]' \
  91'(--debug)--trace[Enable verbose logs with backtrace]' \
  92'-h[Print help (see more with '\''--help'\'')]' \
  93'--help[Print help (see more with '\''--help'\'')]' \
  94'-V[Print version]' \
  95'--version[Print version]' \
  96':account_name -- The name of the account:' \
  97&& ret=0
  98;;
  99(list)
 100_arguments "${_arguments_options[@]}" \
 101'-w+[The maximum width the table should not exceed]:PIXELS: ' \
 102'--max-width=[The maximum width the table should not exceed]:PIXELS: ' \
 103'*-c+[Override the default configuration file path]:PATH:_files' \
 104'*--config=[Override the default configuration file path]:PATH:_files' \
 105'-o+[Customize the output format]:FORMAT:(plain json)' \
 106'--output=[Customize the output format]:FORMAT:(plain json)' \
 107'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
 108'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
 109'(--trace)--debug[Enable logs with spantrace]' \
 110'(--debug)--trace[Enable verbose logs with backtrace]' \
 111'-h[Print help (see more with '\''--help'\'')]' \
 112'--help[Print help (see more with '\''--help'\'')]' \
 113'-V[Print version]' \
 114'--version[Print version]' \
 115&& ret=0
 116;;
 117(sync)
 118_arguments "${_arguments_options[@]}" \
 119'(-x --exclude-folder -A --all-folders)*-f+[Synchronize only specific folders]:FOLDER: ' \
 120'(-x --exclude-folder -A --all-folders)*--include-folder=[Synchronize only specific folders]:FOLDER: ' \
 121'(-f --include-folder -A --all-folders)*-x+[Omit specific folders from the synchronization]:FOLDER: ' \
 122'(-f --include-folder -A --all-folders)*--exclude-folder=[Omit specific folders from the synchronization]:FOLDER: ' \
 123'*-c+[Override the default configuration file path]:PATH:_files' \
 124'*--config=[Override the default configuration file path]:PATH:_files' \
 125'-o+[Customize the output format]:FORMAT:(plain json)' \
 126'--output=[Customize the output format]:FORMAT:(plain json)' \
 127'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
 128'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
 129'-d[Run the synchronization without applying any changes]' \
 130'--dry-run[Run the synchronization without applying any changes]' \
 131'(-f --include-folder -x --exclude-folder)-A[Synchronize all exsting folders]' \
 132'(-f --include-folder -x --exclude-folder)--all-folders[Synchronize all exsting folders]' \
 133'(--trace)--debug[Enable logs with spantrace]' \
 134'(--debug)--trace[Enable verbose logs with backtrace]' \
 135'-h[Print help (see more with '\''--help'\'')]' \
 136'--help[Print help (see more with '\''--help'\'')]' \
 137'-V[Print version]' \
 138'--version[Print version]' \
 139'::account_name -- The name of the account:' \
 140&& ret=0
 141;;
 142(help)
 143_arguments "${_arguments_options[@]}" \
 144":: :_himalaya__account__help_commands" \
 145"*::: :->help" \
 146&& ret=0
 147
 148    case $state in
 149    (help)
 150        words=($line[1] "${words[@]}")
 151        (( CURRENT += 1 ))
 152        curcontext="${curcontext%:*:*}:himalaya-account-help-command-$line[1]:"
 153        case $line[1] in
 154            (check-up)
 155_arguments "${_arguments_options[@]}" \
 156&& ret=0
 157;;
 158(configure)
 159_arguments "${_arguments_options[@]}" \
 160&& ret=0
 161;;
 162(list)
 163_arguments "${_arguments_options[@]}" \
 164&& ret=0
 165;;
 166(sync)
 167_arguments "${_arguments_options[@]}" \
 168&& ret=0
 169;;
 170(help)
 171_arguments "${_arguments_options[@]}" \
 172&& ret=0
 173;;
 174        esac
 175    ;;
 176esac
 177;;
 178        esac
 179    ;;
 180esac
 181;;
 182(folder)
 183_arguments "${_arguments_options[@]}" \
 184'*-c+[Override the default configuration file path]:PATH:_files' \
 185'*--config=[Override the default configuration file path]:PATH:_files' \
 186'-o+[Customize the output format]:FORMAT:(plain json)' \
 187'--output=[Customize the output format]:FORMAT:(plain json)' \
 188'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
 189'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
 190'(--trace)--debug[Enable logs with spantrace]' \
 191'(--debug)--trace[Enable verbose logs with backtrace]' \
 192'-h[Print help (see more with '\''--help'\'')]' \
 193'--help[Print help (see more with '\''--help'\'')]' \
 194'-V[Print version]' \
 195'--version[Print version]' \
 196":: :_himalaya__folder_commands" \
 197"*::: :->folder" \
 198&& ret=0
 199
 200    case $state in
 201    (folder)
 202        words=($line[1] "${words[@]}")
 203        (( CURRENT += 1 ))
 204        curcontext="${curcontext%:*:*}:himalaya-folder-command-$line[1]:"
 205        case $line[1] in
 206            (add)
 207_arguments "${_arguments_options[@]}" \
 208'-a+[Override the default account]:NAME: ' \
 209'--account=[Override the default account]:NAME: ' \
 210'*-c+[Override the default configuration file path]:PATH:_files' \
 211'*--config=[Override the default configuration file path]:PATH:_files' \
 212'-o+[Customize the output format]:FORMAT:(plain json)' \
 213'--output=[Customize the output format]:FORMAT:(plain json)' \
 214'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
 215'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
 216'--disable-cache[Disable any sort of cache]' \
 217'(--trace)--debug[Enable logs with spantrace]' \
 218'(--debug)--trace[Enable verbose logs with backtrace]' \
 219'-h[Print help (see more with '\''--help'\'')]' \
 220'--help[Print help (see more with '\''--help'\'')]' \
 221'-V[Print version]' \
 222'--version[Print version]' \
 223':folder_name -- The name of the folder:' \
 224&& ret=0
 225;;
 226(list)
 227_arguments "${_arguments_options[@]}" \
 228'-w+[The maximum width the table should not exceed]:PIXELS: ' \
 229'--max-width=[The maximum width the table should not exceed]:PIXELS: ' \
 230'-a+[Override the default account]:NAME: ' \
 231'--account=[Override the default account]:NAME: ' \
 232'*-c+[Override the default configuration file path]:PATH:_files' \
 233'*--config=[Override the default configuration file path]:PATH:_files' \
 234'-o+[Customize the output format]:FORMAT:(plain json)' \
 235'--output=[Customize the output format]:FORMAT:(plain json)' \
 236'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
 237'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
 238'--disable-cache[Disable any sort of cache]' \
 239'(--trace)--debug[Enable logs with spantrace]' \
 240'(--debug)--trace[Enable verbose logs with backtrace]' \
 241'-h[Print help (see more with '\''--help'\'')]' \
 242'--help[Print help (see more with '\''--help'\'')]' \
 243'-V[Print version]' \
 244'--version[Print version]' \
 245&& ret=0
 246;;
 247(expunge)
 248_arguments "${_arguments_options[@]}" \
 249'-a+[Override the default account]:NAME: ' \
 250'--account=[Override the default account]:NAME: ' \
 251'*-c+[Override the default configuration file path]:PATH:_files' \
 252'*--config=[Override the default configuration file path]:PATH:_files' \
 253'-o+[Customize the output format]:FORMAT:(plain json)' \
 254'--output=[Customize the output format]:FORMAT:(plain json)' \
 255'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
 256'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
 257'--disable-cache[Disable any sort of cache]' \
 258'(--trace)--debug[Enable logs with spantrace]' \
 259'(--debug)--trace[Enable verbose logs with backtrace]' \
 260'-h[Print help (see more with '\''--help'\'')]' \
 261'--help[Print help (see more with '\''--help'\'')]' \
 262'-V[Print version]' \
 263'--version[Print version]' \
 264':folder_name -- The name of the folder:' \
 265&& ret=0
 266;;
 267(purge)
 268_arguments "${_arguments_options[@]}" \
 269'-a+[Override the default account]:NAME: ' \
 270'--account=[Override the default account]:NAME: ' \
 271'*-c+[Override the default configuration file path]:PATH:_files' \
 272'*--config=[Override the default configuration file path]:PATH:_files' \
 273'-o+[Customize the output format]:FORMAT:(plain json)' \
 274'--output=[Customize the output format]:FORMAT:(plain json)' \
 275'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
 276'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
 277'--disable-cache[Disable any sort of cache]' \
 278'(--trace)--debug[Enable logs with spantrace]' \
 279'(--debug)--trace[Enable verbose logs with backtrace]' \
 280'-h[Print help (see more with '\''--help'\'')]' \
 281'--help[Print help (see more with '\''--help'\'')]' \
 282'-V[Print version]' \
 283'--version[Print version]' \
 284':folder_name -- The name of the folder:' \
 285&& ret=0
 286;;
 287(delete)
 288_arguments "${_arguments_options[@]}" \
 289'-a+[Override the default account]:NAME: ' \
 290'--account=[Override the default account]:NAME: ' \
 291'*-c+[Override the default configuration file path]:PATH:_files' \
 292'*--config=[Override the default configuration file path]:PATH:_files' \
 293'-o+[Customize the output format]:FORMAT:(plain json)' \
 294'--output=[Customize the output format]:FORMAT:(plain json)' \
 295'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
 296'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
 297'--disable-cache[Disable any sort of cache]' \
 298'(--trace)--debug[Enable logs with spantrace]' \
 299'(--debug)--trace[Enable verbose logs with backtrace]' \
 300'-h[Print help (see more with '\''--help'\'')]' \
 301'--help[Print help (see more with '\''--help'\'')]' \
 302'-V[Print version]' \
 303'--version[Print version]' \
 304':folder_name -- The name of the folder:' \
 305&& ret=0
 306;;
 307(help)
 308_arguments "${_arguments_options[@]}" \
 309":: :_himalaya__folder__help_commands" \
 310"*::: :->help" \
 311&& ret=0
 312
 313    case $state in
 314    (help)
 315        words=($line[1] "${words[@]}")
 316        (( CURRENT += 1 ))
 317        curcontext="${curcontext%:*:*}:himalaya-folder-help-command-$line[1]:"
 318        case $line[1] in
 319            (add)
 320_arguments "${_arguments_options[@]}" \
 321&& ret=0
 322;;
 323(list)
 324_arguments "${_arguments_options[@]}" \
 325&& ret=0
 326;;
 327(expunge)
 328_arguments "${_arguments_options[@]}" \
 329&& ret=0
 330;;
 331(purge)
 332_arguments "${_arguments_options[@]}" \
 333&& ret=0
 334;;
 335(delete)
 336_arguments "${_arguments_options[@]}" \
 337&& ret=0
 338;;
 339(help)
 340_arguments "${_arguments_options[@]}" \
 341&& ret=0
 342;;
 343        esac
 344    ;;
 345esac
 346;;
 347        esac
 348    ;;
 349esac
 350;;
 351(envelope)
 352_arguments "${_arguments_options[@]}" \
 353'*-c+[Override the default configuration file path]:PATH:_files' \
 354'*--config=[Override the default configuration file path]:PATH:_files' \
 355'-o+[Customize the output format]:FORMAT:(plain json)' \
 356'--output=[Customize the output format]:FORMAT:(plain json)' \
 357'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
 358'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
 359'(--trace)--debug[Enable logs with spantrace]' \
 360'(--debug)--trace[Enable verbose logs with backtrace]' \
 361'-h[Print help (see more with '\''--help'\'')]' \
 362'--help[Print help (see more with '\''--help'\'')]' \
 363'-V[Print version]' \
 364'--version[Print version]' \
 365":: :_himalaya__envelope_commands" \
 366"*::: :->envelope" \
 367&& ret=0
 368
 369    case $state in
 370    (envelope)
 371        words=($line[1] "${words[@]}")
 372        (( CURRENT += 1 ))
 373        curcontext="${curcontext%:*:*}:himalaya-envelope-command-$line[1]:"
 374        case $line[1] in
 375            (list)
 376_arguments "${_arguments_options[@]}" \
 377'-f+[The name of the folder]:NAME: ' \
 378'--folder=[The name of the folder]:NAME: ' \
 379'-p+[The page number]:NUMBER: ' \
 380'--page=[The page number]:NUMBER: ' \
 381'-s+[The page size]:NUMBER: ' \
 382'--page-size=[The page size]:NUMBER: ' \
 383'-w+[The maximum width the table should not exceed]:PIXELS: ' \
 384'--max-width=[The maximum width the table should not exceed]:PIXELS: ' \
 385'-a+[Override the default account]:NAME: ' \
 386'--account=[Override the default account]:NAME: ' \
 387'*-c+[Override the default configuration file path]:PATH:_files' \
 388'*--config=[Override the default configuration file path]:PATH:_files' \
 389'-o+[Customize the output format]:FORMAT:(plain json)' \
 390'--output=[Customize the output format]:FORMAT:(plain json)' \
 391'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
 392'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
 393'--disable-cache[Disable any sort of cache]' \
 394'(--trace)--debug[Enable logs with spantrace]' \
 395'(--debug)--trace[Enable verbose logs with backtrace]' \
 396'-h[Print help (see more with '\''--help'\'')]' \
 397'--help[Print help (see more with '\''--help'\'')]' \
 398'-V[Print version]' \
 399'--version[Print version]' \
 400'*::query -- The list envelopes filter and sort query:' \
 401&& ret=0
 402;;
 403(watch)
 404_arguments "${_arguments_options[@]}" \
 405'-f+[The name of the folder]:NAME: ' \
 406'--folder=[The name of the folder]:NAME: ' \
 407'-a+[Override the default account]:NAME: ' \
 408'--account=[Override the default account]:NAME: ' \
 409'*-c+[Override the default configuration file path]:PATH:_files' \
 410'*--config=[Override the default configuration file path]:PATH:_files' \
 411'-o+[Customize the output format]:FORMAT:(plain json)' \
 412'--output=[Customize the output format]:FORMAT:(plain json)' \
 413'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
 414'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
 415'--disable-cache[Disable any sort of cache]' \
 416'(--trace)--debug[Enable logs with spantrace]' \
 417'(--debug)--trace[Enable verbose logs with backtrace]' \
 418'-h[Print help (see more with '\''--help'\'')]' \
 419'--help[Print help (see more with '\''--help'\'')]' \
 420'-V[Print version]' \
 421'--version[Print version]' \
 422&& ret=0
 423;;
 424(help)
 425_arguments "${_arguments_options[@]}" \
 426":: :_himalaya__envelope__help_commands" \
 427"*::: :->help" \
 428&& ret=0
 429
 430    case $state in
 431    (help)
 432        words=($line[1] "${words[@]}")
 433        (( CURRENT += 1 ))
 434        curcontext="${curcontext%:*:*}:himalaya-envelope-help-command-$line[1]:"
 435        case $line[1] in
 436            (list)
 437_arguments "${_arguments_options[@]}" \
 438&& ret=0
 439;;
 440(watch)
 441_arguments "${_arguments_options[@]}" \
 442&& ret=0
 443;;
 444(help)
 445_arguments "${_arguments_options[@]}" \
 446&& ret=0
 447;;
 448        esac
 449    ;;
 450esac
 451;;
 452        esac
 453    ;;
 454esac
 455;;
 456(flag)
 457_arguments "${_arguments_options[@]}" \
 458'*-c+[Override the default configuration file path]:PATH:_files' \
 459'*--config=[Override the default configuration file path]:PATH:_files' \
 460'-o+[Customize the output format]:FORMAT:(plain json)' \
 461'--output=[Customize the output format]:FORMAT:(plain json)' \
 462'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
 463'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
 464'(--trace)--debug[Enable logs with spantrace]' \
 465'(--debug)--trace[Enable verbose logs with backtrace]' \
 466'-h[Print help (see more with '\''--help'\'')]' \
 467'--help[Print help (see more with '\''--help'\'')]' \
 468'-V[Print version]' \
 469'--version[Print version]' \
 470":: :_himalaya__flag_commands" \
 471"*::: :->flag" \
 472&& ret=0
 473
 474    case $state in
 475    (flag)
 476        words=($line[1] "${words[@]}")
 477        (( CURRENT += 1 ))
 478        curcontext="${curcontext%:*:*}:himalaya-flag-command-$line[1]:"
 479        case $line[1] in
 480            (add)
 481_arguments "${_arguments_options[@]}" \
 482'-f+[The name of the folder]:NAME: ' \
 483'--folder=[The name of the folder]:NAME: ' \
 484'-a+[Override the default account]:NAME: ' \
 485'--account=[Override the default account]:NAME: ' \
 486'*-c+[Override the default configuration file path]:PATH:_files' \
 487'*--config=[Override the default configuration file path]:PATH:_files' \
 488'-o+[Customize the output format]:FORMAT:(plain json)' \
 489'--output=[Customize the output format]:FORMAT:(plain json)' \
 490'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
 491'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
 492'--disable-cache[Disable any sort of cache]' \
 493'(--trace)--debug[Enable logs with spantrace]' \
 494'(--debug)--trace[Enable verbose logs with backtrace]' \
 495'-h[Print help (see more with '\''--help'\'')]' \
 496'--help[Print help (see more with '\''--help'\'')]' \
 497'-V[Print version]' \
 498'--version[Print version]' \
 499'*::ids_and_flags -- The list of ids and/or flags:' \
 500&& ret=0
 501;;
 502(set)
 503_arguments "${_arguments_options[@]}" \
 504'-f+[The name of the folder]:NAME: ' \
 505'--folder=[The name of the folder]:NAME: ' \
 506'-a+[Override the default account]:NAME: ' \
 507'--account=[Override the default account]:NAME: ' \
 508'*-c+[Override the default configuration file path]:PATH:_files' \
 509'*--config=[Override the default configuration file path]:PATH:_files' \
 510'-o+[Customize the output format]:FORMAT:(plain json)' \
 511'--output=[Customize the output format]:FORMAT:(plain json)' \
 512'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
 513'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
 514'--disable-cache[Disable any sort of cache]' \
 515'(--trace)--debug[Enable logs with spantrace]' \
 516'(--debug)--trace[Enable verbose logs with backtrace]' \
 517'-h[Print help (see more with '\''--help'\'')]' \
 518'--help[Print help (see more with '\''--help'\'')]' \
 519'-V[Print version]' \
 520'--version[Print version]' \
 521'*::ids_and_flags -- The list of ids and/or flags:' \
 522&& ret=0
 523;;
 524(remove)
 525_arguments "${_arguments_options[@]}" \
 526'-f+[The name of the folder]:NAME: ' \
 527'--folder=[The name of the folder]:NAME: ' \
 528'-a+[Override the default account]:NAME: ' \
 529'--account=[Override the default account]:NAME: ' \
 530'*-c+[Override the default configuration file path]:PATH:_files' \
 531'*--config=[Override the default configuration file path]:PATH:_files' \
 532'-o+[Customize the output format]:FORMAT:(plain json)' \
 533'--output=[Customize the output format]:FORMAT:(plain json)' \
 534'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
 535'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
 536'--disable-cache[Disable any sort of cache]' \
 537'(--trace)--debug[Enable logs with spantrace]' \
 538'(--debug)--trace[Enable verbose logs with backtrace]' \
 539'-h[Print help (see more with '\''--help'\'')]' \
 540'--help[Print help (see more with '\''--help'\'')]' \
 541'-V[Print version]' \
 542'--version[Print version]' \
 543'*::ids_and_flags -- The list of ids and/or flags:' \
 544&& ret=0
 545;;
 546(help)
 547_arguments "${_arguments_options[@]}" \
 548":: :_himalaya__flag__help_commands" \
 549"*::: :->help" \
 550&& ret=0
 551
 552    case $state in
 553    (help)
 554        words=($line[1] "${words[@]}")
 555        (( CURRENT += 1 ))
 556        curcontext="${curcontext%:*:*}:himalaya-flag-help-command-$line[1]:"
 557        case $line[1] in
 558            (add)
 559_arguments "${_arguments_options[@]}" \
 560&& ret=0
 561;;
 562(set)
 563_arguments "${_arguments_options[@]}" \
 564&& ret=0
 565;;
 566(remove)
 567_arguments "${_arguments_options[@]}" \
 568&& ret=0
 569;;
 570(help)
 571_arguments "${_arguments_options[@]}" \
 572&& ret=0
 573;;
 574        esac
 575    ;;
 576esac
 577;;
 578        esac
 579    ;;
 580esac
 581;;
 582(message)
 583_arguments "${_arguments_options[@]}" \
 584'*-c+[Override the default configuration file path]:PATH:_files' \
 585'*--config=[Override the default configuration file path]:PATH:_files' \
 586'-o+[Customize the output format]:FORMAT:(plain json)' \
 587'--output=[Customize the output format]:FORMAT:(plain json)' \
 588'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
 589'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
 590'(--trace)--debug[Enable logs with spantrace]' \
 591'(--debug)--trace[Enable verbose logs with backtrace]' \
 592'-h[Print help (see more with '\''--help'\'')]' \
 593'--help[Print help (see more with '\''--help'\'')]' \
 594'-V[Print version]' \
 595'--version[Print version]' \
 596":: :_himalaya__message_commands" \
 597"*::: :->message" \
 598&& ret=0
 599
 600    case $state in
 601    (message)
 602        words=($line[1] "${words[@]}")
 603        (( CURRENT += 1 ))
 604        curcontext="${curcontext%:*:*}:himalaya-message-command-$line[1]:"
 605        case $line[1] in
 606            (read)
 607_arguments "${_arguments_options[@]}" \
 608'-f+[The name of the folder]:NAME: ' \
 609'--folder=[The name of the folder]:NAME: ' \
 610'(-r --raw --no-headers)*-H+[List of headers that should be visible at the top of the message]:NAME: ' \
 611'(-r --raw --no-headers)*--header=[List of headers that should be visible at the top of the message]:NAME: ' \
 612'-a+[Override the default account]:NAME: ' \
 613'--account=[Override the default account]:NAME: ' \
 614'*-c+[Override the default configuration file path]:PATH:_files' \
 615'*--config=[Override the default configuration file path]:PATH:_files' \
 616'-o+[Customize the output format]:FORMAT:(plain json)' \
 617'--output=[Customize the output format]:FORMAT:(plain json)' \
 618'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
 619'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
 620'-p[Read the message without applying the "seen" flag to its corresponding envelope]' \
 621'--preview[Read the message without applying the "seen" flag to its corresponding envelope]' \
 622'(--no-headers -H --header)-r[Read the raw version of the given message]' \
 623'(--no-headers -H --header)--raw[Read the raw version of the given message]' \
 624'(-r --raw)--html[Read only body of text/html parts]' \
 625'(-r --raw -H --header)--no-headers[Read only the body of the message]' \
 626'--disable-cache[Disable any sort of cache]' \
 627'(--trace)--debug[Enable logs with spantrace]' \
 628'(--debug)--trace[Enable verbose logs with backtrace]' \
 629'-h[Print help (see more with '\''--help'\'')]' \
 630'--help[Print help (see more with '\''--help'\'')]' \
 631'-V[Print version]' \
 632'--version[Print version]' \
 633'*::ids -- The list of envelopes ids:' \
 634&& ret=0
 635;;
 636(write)
 637_arguments "${_arguments_options[@]}" \
 638'*-H+[Prefill the template with custom headers]:KEY:VAL: ' \
 639'*--header=[Prefill the template with custom headers]:KEY:VAL: ' \
 640'-a+[Override the default account]:NAME: ' \
 641'--account=[Override the default account]:NAME: ' \
 642'*-c+[Override the default configuration file path]:PATH:_files' \
 643'*--config=[Override the default configuration file path]:PATH:_files' \
 644'-o+[Customize the output format]:FORMAT:(plain json)' \
 645'--output=[Customize the output format]:FORMAT:(plain json)' \
 646'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
 647'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
 648'--disable-cache[Disable any sort of cache]' \
 649'(--trace)--debug[Enable logs with spantrace]' \
 650'(--debug)--trace[Enable verbose logs with backtrace]' \
 651'-h[Print help (see more with '\''--help'\'')]' \
 652'--help[Print help (see more with '\''--help'\'')]' \
 653'-V[Print version]' \
 654'--version[Print version]' \
 655'*::body_raw -- Prefill the template with a custom body:' \
 656&& ret=0
 657;;
 658(reply)
 659_arguments "${_arguments_options[@]}" \
 660'-f+[The name of the folder]:NAME: ' \
 661'--folder=[The name of the folder]:NAME: ' \
 662'*-H+[Prefill the template with custom headers]:KEY:VAL: ' \
 663'*--header=[Prefill the template with custom headers]:KEY:VAL: ' \
 664'-a+[Override the default account]:NAME: ' \
 665'--account=[Override the default account]:NAME: ' \
 666'*-c+[Override the default configuration file path]:PATH:_files' \
 667'*--config=[Override the default configuration file path]:PATH:_files' \
 668'-o+[Customize the output format]:FORMAT:(plain json)' \
 669'--output=[Customize the output format]:FORMAT:(plain json)' \
 670'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
 671'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
 672'-A[Reply to all recipients]' \
 673'--all[Reply to all recipients]' \
 674'--disable-cache[Disable any sort of cache]' \
 675'(--trace)--debug[Enable logs with spantrace]' \
 676'(--debug)--trace[Enable verbose logs with backtrace]' \
 677'-h[Print help (see more with '\''--help'\'')]' \
 678'--help[Print help (see more with '\''--help'\'')]' \
 679'-V[Print version]' \
 680'--version[Print version]' \
 681':id -- The envelope id:' \
 682'*::body_raw -- Prefill the template with a custom body:' \
 683&& ret=0
 684;;
 685(forward)
 686_arguments "${_arguments_options[@]}" \
 687'-f+[The name of the folder]:NAME: ' \
 688'--folder=[The name of the folder]:NAME: ' \
 689'*-H+[Prefill the template with custom headers]:KEY:VAL: ' \
 690'*--header=[Prefill the template with custom headers]:KEY:VAL: ' \
 691'-a+[Override the default account]:NAME: ' \
 692'--account=[Override the default account]:NAME: ' \
 693'*-c+[Override the default configuration file path]:PATH:_files' \
 694'*--config=[Override the default configuration file path]:PATH:_files' \
 695'-o+[Customize the output format]:FORMAT:(plain json)' \
 696'--output=[Customize the output format]:FORMAT:(plain json)' \
 697'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
 698'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
 699'--disable-cache[Disable any sort of cache]' \
 700'(--trace)--debug[Enable logs with spantrace]' \
 701'(--debug)--trace[Enable verbose logs with backtrace]' \
 702'-h[Print help (see more with '\''--help'\'')]' \
 703'--help[Print help (see more with '\''--help'\'')]' \
 704'-V[Print version]' \
 705'--version[Print version]' \
 706':id -- The envelope id:' \
 707'*::body_raw -- Prefill the template with a custom body:' \
 708&& ret=0
 709;;
 710(mailto)
 711_arguments "${_arguments_options[@]}" \
 712'-a+[Override the default account]:NAME: ' \
 713'--account=[Override the default account]:NAME: ' \
 714'*-c+[Override the default configuration file path]:PATH:_files' \
 715'*--config=[Override the default configuration file path]:PATH:_files' \
 716'-o+[Customize the output format]:FORMAT:(plain json)' \
 717'--output=[Customize the output format]:FORMAT:(plain json)' \
 718'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
 719'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
 720'--disable-cache[Disable any sort of cache]' \
 721'(--trace)--debug[Enable logs with spantrace]' \
 722'(--debug)--trace[Enable verbose logs with backtrace]' \
 723'-h[Print help (see more with '\''--help'\'')]' \
 724'--help[Print help (see more with '\''--help'\'')]' \
 725'-V[Print version]' \
 726'--version[Print version]' \
 727':url -- The mailto url:' \
 728&& ret=0
 729;;
 730(save)
 731_arguments "${_arguments_options[@]}" \
 732'-f+[The name of the folder]:NAME: ' \
 733'--folder=[The name of the folder]:NAME: ' \
 734'-a+[Override the default account]:NAME: ' \
 735'--account=[Override the default account]:NAME: ' \
 736'*-c+[Override the default configuration file path]:PATH:_files' \
 737'*--config=[Override the default configuration file path]:PATH:_files' \
 738'-o+[Customize the output format]:FORMAT:(plain json)' \
 739'--output=[Customize the output format]:FORMAT:(plain json)' \
 740'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
 741'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
 742'--disable-cache[Disable any sort of cache]' \
 743'(--trace)--debug[Enable logs with spantrace]' \
 744'(--debug)--trace[Enable verbose logs with backtrace]' \
 745'-h[Print help (see more with '\''--help'\'')]' \
 746'--help[Print help (see more with '\''--help'\'')]' \
 747'-V[Print version]' \
 748'--version[Print version]' \
 749'*::message_raw -- The raw message, including headers and body:' \
 750&& ret=0
 751;;
 752(send)
 753_arguments "${_arguments_options[@]}" \
 754'-a+[Override the default account]:NAME: ' \
 755'--account=[Override the default account]:NAME: ' \
 756'*-c+[Override the default configuration file path]:PATH:_files' \
 757'*--config=[Override the default configuration file path]:PATH:_files' \
 758'-o+[Customize the output format]:FORMAT:(plain json)' \
 759'--output=[Customize the output format]:FORMAT:(plain json)' \
 760'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
 761'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
 762'--disable-cache[Disable any sort of cache]' \
 763'(--trace)--debug[Enable logs with spantrace]' \
 764'(--debug)--trace[Enable verbose logs with backtrace]' \
 765'-h[Print help (see more with '\''--help'\'')]' \
 766'--help[Print help (see more with '\''--help'\'')]' \
 767'-V[Print version]' \
 768'--version[Print version]' \
 769'*::message_raw -- The raw message, including headers and body:' \
 770&& ret=0
 771;;
 772(copy)
 773_arguments "${_arguments_options[@]}" \
 774'-f+[The name of the source folder]:SOURCE: ' \
 775'--folder=[The name of the source folder]:SOURCE: ' \
 776'-a+[Override the default account]:NAME: ' \
 777'--account=[Override the default account]:NAME: ' \
 778'*-c+[Override the default configuration file path]:PATH:_files' \
 779'*--config=[Override the default configuration file path]:PATH:_files' \
 780'-o+[Customize the output format]:FORMAT:(plain json)' \
 781'--output=[Customize the output format]:FORMAT:(plain json)' \
 782'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
 783'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
 784'--disable-cache[Disable any sort of cache]' \
 785'(--trace)--debug[Enable logs with spantrace]' \
 786'(--debug)--trace[Enable verbose logs with backtrace]' \
 787'-h[Print help (see more with '\''--help'\'')]' \
 788'--help[Print help (see more with '\''--help'\'')]' \
 789'-V[Print version]' \
 790'--version[Print version]' \
 791':target_folder_name -- The name of the target folder:' \
 792'*::ids -- The list of envelopes ids:' \
 793&& ret=0
 794;;
 795(move)
 796_arguments "${_arguments_options[@]}" \
 797'-f+[The name of the source folder]:SOURCE: ' \
 798'--folder=[The name of the source folder]:SOURCE: ' \
 799'-a+[Override the default account]:NAME: ' \
 800'--account=[Override the default account]:NAME: ' \
 801'*-c+[Override the default configuration file path]:PATH:_files' \
 802'*--config=[Override the default configuration file path]:PATH:_files' \
 803'-o+[Customize the output format]:FORMAT:(plain json)' \
 804'--output=[Customize the output format]:FORMAT:(plain json)' \
 805'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
 806'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
 807'--disable-cache[Disable any sort of cache]' \
 808'(--trace)--debug[Enable logs with spantrace]' \
 809'(--debug)--trace[Enable verbose logs with backtrace]' \
 810'-h[Print help (see more with '\''--help'\'')]' \
 811'--help[Print help (see more with '\''--help'\'')]' \
 812'-V[Print version]' \
 813'--version[Print version]' \
 814':target_folder_name -- The name of the target folder:' \
 815'*::ids -- The list of envelopes ids:' \
 816&& ret=0
 817;;
 818(delete)
 819_arguments "${_arguments_options[@]}" \
 820'-f+[The name of the folder]:NAME: ' \
 821'--folder=[The name of the folder]:NAME: ' \
 822'-a+[Override the default account]:NAME: ' \
 823'--account=[Override the default account]:NAME: ' \
 824'*-c+[Override the default configuration file path]:PATH:_files' \
 825'*--config=[Override the default configuration file path]:PATH:_files' \
 826'-o+[Customize the output format]:FORMAT:(plain json)' \
 827'--output=[Customize the output format]:FORMAT:(plain json)' \
 828'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
 829'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
 830'--disable-cache[Disable any sort of cache]' \
 831'(--trace)--debug[Enable logs with spantrace]' \
 832'(--debug)--trace[Enable verbose logs with backtrace]' \
 833'-h[Print help (see more with '\''--help'\'')]' \
 834'--help[Print help (see more with '\''--help'\'')]' \
 835'-V[Print version]' \
 836'--version[Print version]' \
 837'*::ids -- The list of envelopes ids:' \
 838&& ret=0
 839;;
 840(help)
 841_arguments "${_arguments_options[@]}" \
 842":: :_himalaya__message__help_commands" \
 843"*::: :->help" \
 844&& ret=0
 845
 846    case $state in
 847    (help)
 848        words=($line[1] "${words[@]}")
 849        (( CURRENT += 1 ))
 850        curcontext="${curcontext%:*:*}:himalaya-message-help-command-$line[1]:"
 851        case $line[1] in
 852            (read)
 853_arguments "${_arguments_options[@]}" \
 854&& ret=0
 855;;
 856(write)
 857_arguments "${_arguments_options[@]}" \
 858&& ret=0
 859;;
 860(reply)
 861_arguments "${_arguments_options[@]}" \
 862&& ret=0
 863;;
 864(forward)
 865_arguments "${_arguments_options[@]}" \
 866&& ret=0
 867;;
 868(mailto)
 869_arguments "${_arguments_options[@]}" \
 870&& ret=0
 871;;
 872(save)
 873_arguments "${_arguments_options[@]}" \
 874&& ret=0
 875;;
 876(send)
 877_arguments "${_arguments_options[@]}" \
 878&& ret=0
 879;;
 880(copy)
 881_arguments "${_arguments_options[@]}" \
 882&& ret=0
 883;;
 884(move)
 885_arguments "${_arguments_options[@]}" \
 886&& ret=0
 887;;
 888(delete)
 889_arguments "${_arguments_options[@]}" \
 890&& ret=0
 891;;
 892(help)
 893_arguments "${_arguments_options[@]}" \
 894&& ret=0
 895;;
 896        esac
 897    ;;
 898esac
 899;;
 900        esac
 901    ;;
 902esac
 903;;
 904(attachment)
 905_arguments "${_arguments_options[@]}" \
 906'*-c+[Override the default configuration file path]:PATH:_files' \
 907'*--config=[Override the default configuration file path]:PATH:_files' \
 908'-o+[Customize the output format]:FORMAT:(plain json)' \
 909'--output=[Customize the output format]:FORMAT:(plain json)' \
 910'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
 911'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
 912'(--trace)--debug[Enable logs with spantrace]' \
 913'(--debug)--trace[Enable verbose logs with backtrace]' \
 914'-h[Print help (see more with '\''--help'\'')]' \
 915'--help[Print help (see more with '\''--help'\'')]' \
 916'-V[Print version]' \
 917'--version[Print version]' \
 918":: :_himalaya__attachment_commands" \
 919"*::: :->attachment" \
 920&& ret=0
 921
 922    case $state in
 923    (attachment)
 924        words=($line[1] "${words[@]}")
 925        (( CURRENT += 1 ))
 926        curcontext="${curcontext%:*:*}:himalaya-attachment-command-$line[1]:"
 927        case $line[1] in
 928            (download)
 929_arguments "${_arguments_options[@]}" \
 930'-f+[The name of the folder]:NAME: ' \
 931'--folder=[The name of the folder]:NAME: ' \
 932'-a+[Override the default account]:NAME: ' \
 933'--account=[Override the default account]:NAME: ' \
 934'*-c+[Override the default configuration file path]:PATH:_files' \
 935'*--config=[Override the default configuration file path]:PATH:_files' \
 936'-o+[Customize the output format]:FORMAT:(plain json)' \
 937'--output=[Customize the output format]:FORMAT:(plain json)' \
 938'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
 939'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
 940'--disable-cache[Disable any sort of cache]' \
 941'(--trace)--debug[Enable logs with spantrace]' \
 942'(--debug)--trace[Enable verbose logs with backtrace]' \
 943'-h[Print help (see more with '\''--help'\'')]' \
 944'--help[Print help (see more with '\''--help'\'')]' \
 945'-V[Print version]' \
 946'--version[Print version]' \
 947'*::ids -- The list of envelopes ids:' \
 948&& ret=0
 949;;
 950(help)
 951_arguments "${_arguments_options[@]}" \
 952":: :_himalaya__attachment__help_commands" \
 953"*::: :->help" \
 954&& ret=0
 955
 956    case $state in
 957    (help)
 958        words=($line[1] "${words[@]}")
 959        (( CURRENT += 1 ))
 960        curcontext="${curcontext%:*:*}:himalaya-attachment-help-command-$line[1]:"
 961        case $line[1] in
 962            (download)
 963_arguments "${_arguments_options[@]}" \
 964&& ret=0
 965;;
 966(help)
 967_arguments "${_arguments_options[@]}" \
 968&& ret=0
 969;;
 970        esac
 971    ;;
 972esac
 973;;
 974        esac
 975    ;;
 976esac
 977;;
 978(template)
 979_arguments "${_arguments_options[@]}" \
 980'*-c+[Override the default configuration file path]:PATH:_files' \
 981'*--config=[Override the default configuration file path]:PATH:_files' \
 982'-o+[Customize the output format]:FORMAT:(plain json)' \
 983'--output=[Customize the output format]:FORMAT:(plain json)' \
 984'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
 985'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
 986'(--trace)--debug[Enable logs with spantrace]' \
 987'(--debug)--trace[Enable verbose logs with backtrace]' \
 988'-h[Print help (see more with '\''--help'\'')]' \
 989'--help[Print help (see more with '\''--help'\'')]' \
 990'-V[Print version]' \
 991'--version[Print version]' \
 992":: :_himalaya__template_commands" \
 993"*::: :->template" \
 994&& ret=0
 995
 996    case $state in
 997    (template)
 998        words=($line[1] "${words[@]}")
 999        (( CURRENT += 1 ))
1000        curcontext="${curcontext%:*:*}:himalaya-template-command-$line[1]:"
1001        case $line[1] in
1002            (write)
1003_arguments "${_arguments_options[@]}" \
1004'*-H+[Prefill the template with custom headers]:KEY:VAL: ' \
1005'*--header=[Prefill the template with custom headers]:KEY:VAL: ' \
1006'-a+[Override the default account]:NAME: ' \
1007'--account=[Override the default account]:NAME: ' \
1008'*-c+[Override the default configuration file path]:PATH:_files' \
1009'*--config=[Override the default configuration file path]:PATH:_files' \
1010'-o+[Customize the output format]:FORMAT:(plain json)' \
1011'--output=[Customize the output format]:FORMAT:(plain json)' \
1012'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
1013'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
1014'--disable-cache[Disable any sort of cache]' \
1015'(--trace)--debug[Enable logs with spantrace]' \
1016'(--debug)--trace[Enable verbose logs with backtrace]' \
1017'-h[Print help (see more with '\''--help'\'')]' \
1018'--help[Print help (see more with '\''--help'\'')]' \
1019'-V[Print version]' \
1020'--version[Print version]' \
1021'*::body_raw -- Prefill the template with a custom MML body:' \
1022&& ret=0
1023;;
1024(reply)
1025_arguments "${_arguments_options[@]}" \
1026'-f+[The name of the folder]:NAME: ' \
1027'--folder=[The name of the folder]:NAME: ' \
1028'*-H+[Prefill the template with custom headers]:KEY:VAL: ' \
1029'*--header=[Prefill the template with custom headers]:KEY:VAL: ' \
1030'-a+[Override the default account]:NAME: ' \
1031'--account=[Override the default account]:NAME: ' \
1032'*-c+[Override the default configuration file path]:PATH:_files' \
1033'*--config=[Override the default configuration file path]:PATH:_files' \
1034'-o+[Customize the output format]:FORMAT:(plain json)' \
1035'--output=[Customize the output format]:FORMAT:(plain json)' \
1036'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
1037'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
1038'-A[Reply to all recipients]' \
1039'--all[Reply to all recipients]' \
1040'--disable-cache[Disable any sort of cache]' \
1041'(--trace)--debug[Enable logs with spantrace]' \
1042'(--debug)--trace[Enable verbose logs with backtrace]' \
1043'-h[Print help (see more with '\''--help'\'')]' \
1044'--help[Print help (see more with '\''--help'\'')]' \
1045'-V[Print version]' \
1046'--version[Print version]' \
1047':id -- The envelope id:' \
1048'*::body_raw -- Prefill the template with a custom body:' \
1049&& ret=0
1050;;
1051(forward)
1052_arguments "${_arguments_options[@]}" \
1053'-f+[The name of the folder]:NAME: ' \
1054'--folder=[The name of the folder]:NAME: ' \
1055'*-H+[Prefill the template with custom headers]:KEY:VAL: ' \
1056'*--header=[Prefill the template with custom headers]:KEY:VAL: ' \
1057'-a+[Override the default account]:NAME: ' \
1058'--account=[Override the default account]:NAME: ' \
1059'*-c+[Override the default configuration file path]:PATH:_files' \
1060'*--config=[Override the default configuration file path]:PATH:_files' \
1061'-o+[Customize the output format]:FORMAT:(plain json)' \
1062'--output=[Customize the output format]:FORMAT:(plain json)' \
1063'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
1064'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
1065'--disable-cache[Disable any sort of cache]' \
1066'(--trace)--debug[Enable logs with spantrace]' \
1067'(--debug)--trace[Enable verbose logs with backtrace]' \
1068'-h[Print help (see more with '\''--help'\'')]' \
1069'--help[Print help (see more with '\''--help'\'')]' \
1070'-V[Print version]' \
1071'--version[Print version]' \
1072':id -- The envelope id:' \
1073'*::body_raw -- Prefill the template with a custom body:' \
1074&& ret=0
1075;;
1076(save)
1077_arguments "${_arguments_options[@]}" \
1078'-f+[The name of the folder]:NAME: ' \
1079'--folder=[The name of the folder]:NAME: ' \
1080'-a+[Override the default account]:NAME: ' \
1081'--account=[Override the default account]:NAME: ' \
1082'*-c+[Override the default configuration file path]:PATH:_files' \
1083'*--config=[Override the default configuration file path]:PATH:_files' \
1084'-o+[Customize the output format]:FORMAT:(plain json)' \
1085'--output=[Customize the output format]:FORMAT:(plain json)' \
1086'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
1087'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
1088'--disable-cache[Disable any sort of cache]' \
1089'(--trace)--debug[Enable logs with spantrace]' \
1090'(--debug)--trace[Enable verbose logs with backtrace]' \
1091'-h[Print help (see more with '\''--help'\'')]' \
1092'--help[Print help (see more with '\''--help'\'')]' \
1093'-V[Print version]' \
1094'--version[Print version]' \
1095'*::template_raw -- The raw template, including headers and MML body:' \
1096&& ret=0
1097;;
1098(send)
1099_arguments "${_arguments_options[@]}" \
1100'-a+[Override the default account]:NAME: ' \
1101'--account=[Override the default account]:NAME: ' \
1102'*-c+[Override the default configuration file path]:PATH:_files' \
1103'*--config=[Override the default configuration file path]:PATH:_files' \
1104'-o+[Customize the output format]:FORMAT:(plain json)' \
1105'--output=[Customize the output format]:FORMAT:(plain json)' \
1106'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
1107'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
1108'--disable-cache[Disable any sort of cache]' \
1109'(--trace)--debug[Enable logs with spantrace]' \
1110'(--debug)--trace[Enable verbose logs with backtrace]' \
1111'-h[Print help (see more with '\''--help'\'')]' \
1112'--help[Print help (see more with '\''--help'\'')]' \
1113'-V[Print version]' \
1114'--version[Print version]' \
1115'*::template_raw -- The raw template, including headers and MML body:' \
1116&& ret=0
1117;;
1118(help)
1119_arguments "${_arguments_options[@]}" \
1120":: :_himalaya__template__help_commands" \
1121"*::: :->help" \
1122&& ret=0
1123
1124    case $state in
1125    (help)
1126        words=($line[1] "${words[@]}")
1127        (( CURRENT += 1 ))
1128        curcontext="${curcontext%:*:*}:himalaya-template-help-command-$line[1]:"
1129        case $line[1] in
1130            (write)
1131_arguments "${_arguments_options[@]}" \
1132&& ret=0
1133;;
1134(reply)
1135_arguments "${_arguments_options[@]}" \
1136&& ret=0
1137;;
1138(forward)
1139_arguments "${_arguments_options[@]}" \
1140&& ret=0
1141;;
1142(save)
1143_arguments "${_arguments_options[@]}" \
1144&& ret=0
1145;;
1146(send)
1147_arguments "${_arguments_options[@]}" \
1148&& ret=0
1149;;
1150(help)
1151_arguments "${_arguments_options[@]}" \
1152&& ret=0
1153;;
1154        esac
1155    ;;
1156esac
1157;;
1158        esac
1159    ;;
1160esac
1161;;
1162(manual)
1163_arguments "${_arguments_options[@]}" \
1164'*-c+[Override the default configuration file path]:PATH:_files' \
1165'*--config=[Override the default configuration file path]:PATH:_files' \
1166'-o+[Customize the output format]:FORMAT:(plain json)' \
1167'--output=[Customize the output format]:FORMAT:(plain json)' \
1168'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
1169'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
1170'(--trace)--debug[Enable logs with spantrace]' \
1171'(--debug)--trace[Enable verbose logs with backtrace]' \
1172'-h[Print help (see more with '\''--help'\'')]' \
1173'--help[Print help (see more with '\''--help'\'')]' \
1174'-V[Print version]' \
1175'--version[Print version]' \
1176':dir -- Directory where man files should be generated in:_files' \
1177&& ret=0
1178;;
1179(completion)
1180_arguments "${_arguments_options[@]}" \
1181'*-c+[Override the default configuration file path]:PATH:_files' \
1182'*--config=[Override the default configuration file path]:PATH:_files' \
1183'-o+[Customize the output format]:FORMAT:(plain json)' \
1184'--output=[Customize the output format]:FORMAT:(plain json)' \
1185'-C+[Control when to use colors]:MODE:(never always ansi auto)' \
1186'--color=[Control when to use colors]:MODE:(never always ansi auto)' \
1187'(--trace)--debug[Enable logs with spantrace]' \
1188'(--debug)--trace[Enable verbose logs with backtrace]' \
1189'-h[Print help (see more with '\''--help'\'')]' \
1190'--help[Print help (see more with '\''--help'\'')]' \
1191'-V[Print version]' \
1192'--version[Print version]' \
1193':shell -- Shell for which completion script should be generated for:(bash elvish fish powershell zsh)' \
1194&& ret=0
1195;;
1196(help)
1197_arguments "${_arguments_options[@]}" \
1198":: :_himalaya__help_commands" \
1199"*::: :->help" \
1200&& ret=0
1201
1202    case $state in
1203    (help)
1204        words=($line[1] "${words[@]}")
1205        (( CURRENT += 1 ))
1206        curcontext="${curcontext%:*:*}:himalaya-help-command-$line[1]:"
1207        case $line[1] in
1208            (account)
1209_arguments "${_arguments_options[@]}" \
1210":: :_himalaya__help__account_commands" \
1211"*::: :->account" \
1212&& ret=0
1213
1214    case $state in
1215    (account)
1216        words=($line[1] "${words[@]}")
1217        (( CURRENT += 1 ))
1218        curcontext="${curcontext%:*:*}:himalaya-help-account-command-$line[1]:"
1219        case $line[1] in
1220            (check-up)
1221_arguments "${_arguments_options[@]}" \
1222&& ret=0
1223;;
1224(configure)
1225_arguments "${_arguments_options[@]}" \
1226&& ret=0
1227;;
1228(list)
1229_arguments "${_arguments_options[@]}" \
1230&& ret=0
1231;;
1232(sync)
1233_arguments "${_arguments_options[@]}" \
1234&& ret=0
1235;;
1236        esac
1237    ;;
1238esac
1239;;
1240(folder)
1241_arguments "${_arguments_options[@]}" \
1242":: :_himalaya__help__folder_commands" \
1243"*::: :->folder" \
1244&& ret=0
1245
1246    case $state in
1247    (folder)
1248        words=($line[1] "${words[@]}")
1249        (( CURRENT += 1 ))
1250        curcontext="${curcontext%:*:*}:himalaya-help-folder-command-$line[1]:"
1251        case $line[1] in
1252            (add)
1253_arguments "${_arguments_options[@]}" \
1254&& ret=0
1255;;
1256(list)
1257_arguments "${_arguments_options[@]}" \
1258&& ret=0
1259;;
1260(expunge)
1261_arguments "${_arguments_options[@]}" \
1262&& ret=0
1263;;
1264(purge)
1265_arguments "${_arguments_options[@]}" \
1266&& ret=0
1267;;
1268(delete)
1269_arguments "${_arguments_options[@]}" \
1270&& ret=0
1271;;
1272        esac
1273    ;;
1274esac
1275;;
1276(envelope)
1277_arguments "${_arguments_options[@]}" \
1278":: :_himalaya__help__envelope_commands" \
1279"*::: :->envelope" \
1280&& ret=0
1281
1282    case $state in
1283    (envelope)
1284        words=($line[1] "${words[@]}")
1285        (( CURRENT += 1 ))
1286        curcontext="${curcontext%:*:*}:himalaya-help-envelope-command-$line[1]:"
1287        case $line[1] in
1288            (list)
1289_arguments "${_arguments_options[@]}" \
1290&& ret=0
1291;;
1292(watch)
1293_arguments "${_arguments_options[@]}" \
1294&& ret=0
1295;;
1296        esac
1297    ;;
1298esac
1299;;
1300(flag)
1301_arguments "${_arguments_options[@]}" \
1302":: :_himalaya__help__flag_commands" \
1303"*::: :->flag" \
1304&& ret=0
1305
1306    case $state in
1307    (flag)
1308        words=($line[1] "${words[@]}")
1309        (( CURRENT += 1 ))
1310        curcontext="${curcontext%:*:*}:himalaya-help-flag-command-$line[1]:"
1311        case $line[1] in
1312            (add)
1313_arguments "${_arguments_options[@]}" \
1314&& ret=0
1315;;
1316(set)
1317_arguments "${_arguments_options[@]}" \
1318&& ret=0
1319;;
1320(remove)
1321_arguments "${_arguments_options[@]}" \
1322&& ret=0
1323;;
1324        esac
1325    ;;
1326esac
1327;;
1328(message)
1329_arguments "${_arguments_options[@]}" \
1330":: :_himalaya__help__message_commands" \
1331"*::: :->message" \
1332&& ret=0
1333
1334    case $state in
1335    (message)
1336        words=($line[1] "${words[@]}")
1337        (( CURRENT += 1 ))
1338        curcontext="${curcontext%:*:*}:himalaya-help-message-command-$line[1]:"
1339        case $line[1] in
1340            (read)
1341_arguments "${_arguments_options[@]}" \
1342&& ret=0
1343;;
1344(write)
1345_arguments "${_arguments_options[@]}" \
1346&& ret=0
1347;;
1348(reply)
1349_arguments "${_arguments_options[@]}" \
1350&& ret=0
1351;;
1352(forward)
1353_arguments "${_arguments_options[@]}" \
1354&& ret=0
1355;;
1356(mailto)
1357_arguments "${_arguments_options[@]}" \
1358&& ret=0
1359;;
1360(save)
1361_arguments "${_arguments_options[@]}" \
1362&& ret=0
1363;;
1364(send)
1365_arguments "${_arguments_options[@]}" \
1366&& ret=0
1367;;
1368(copy)
1369_arguments "${_arguments_options[@]}" \
1370&& ret=0
1371;;
1372(move)
1373_arguments "${_arguments_options[@]}" \
1374&& ret=0
1375;;
1376(delete)
1377_arguments "${_arguments_options[@]}" \
1378&& ret=0
1379;;
1380        esac
1381    ;;
1382esac
1383;;
1384(attachment)
1385_arguments "${_arguments_options[@]}" \
1386":: :_himalaya__help__attachment_commands" \
1387"*::: :->attachment" \
1388&& ret=0
1389
1390    case $state in
1391    (attachment)
1392        words=($line[1] "${words[@]}")
1393        (( CURRENT += 1 ))
1394        curcontext="${curcontext%:*:*}:himalaya-help-attachment-command-$line[1]:"
1395        case $line[1] in
1396            (download)
1397_arguments "${_arguments_options[@]}" \
1398&& ret=0
1399;;
1400        esac
1401    ;;
1402esac
1403;;
1404(template)
1405_arguments "${_arguments_options[@]}" \
1406":: :_himalaya__help__template_commands" \
1407"*::: :->template" \
1408&& ret=0
1409
1410    case $state in
1411    (template)
1412        words=($line[1] "${words[@]}")
1413        (( CURRENT += 1 ))
1414        curcontext="${curcontext%:*:*}:himalaya-help-template-command-$line[1]:"
1415        case $line[1] in
1416            (write)
1417_arguments "${_arguments_options[@]}" \
1418&& ret=0
1419;;
1420(reply)
1421_arguments "${_arguments_options[@]}" \
1422&& ret=0
1423;;
1424(forward)
1425_arguments "${_arguments_options[@]}" \
1426&& ret=0
1427;;
1428(save)
1429_arguments "${_arguments_options[@]}" \
1430&& ret=0
1431;;
1432(send)
1433_arguments "${_arguments_options[@]}" \
1434&& ret=0
1435;;
1436        esac
1437    ;;
1438esac
1439;;
1440(manual)
1441_arguments "${_arguments_options[@]}" \
1442&& ret=0
1443;;
1444(completion)
1445_arguments "${_arguments_options[@]}" \
1446&& ret=0
1447;;
1448(help)
1449_arguments "${_arguments_options[@]}" \
1450&& ret=0
1451;;
1452        esac
1453    ;;
1454esac
1455;;
1456        esac
1457    ;;
1458esac
1459}
1460
1461(( $+functions[_himalaya_commands] )) ||
1462_himalaya_commands() {
1463    local commands; commands=(
1464'account:Manage accounts' \
1465'folder:Manage folders' \
1466'mailbox:Manage folders' \
1467'envelope:Manage envelopes' \
1468'flag:Manage flags' \
1469'message:Manage messages' \
1470'attachment:Manage attachments' \
1471'template:Manage templates' \
1472'manual:Generate manual pages to a directory' \
1473'completion:Print completion script for a shell to stdout' \
1474'help:Print this message or the help of the given subcommand(s)' \
1475    )
1476    _describe -t commands 'himalaya commands' commands "$@"
1477}
1478(( $+functions[_himalaya__account_commands] )) ||
1479_himalaya__account_commands() {
1480    local commands; commands=(
1481'check-up:Check up the given account' \
1482'configure:Configure an account' \
1483'list:List all accounts' \
1484'sync:Synchronize an account' \
1485'help:Print this message or the help of the given subcommand(s)' \
1486    )
1487    _describe -t commands 'himalaya account commands' commands "$@"
1488}
1489(( $+functions[_himalaya__help__account_commands] )) ||
1490_himalaya__help__account_commands() {
1491    local commands; commands=(
1492'check-up:Check up the given account' \
1493'configure:Configure an account' \
1494'list:List all accounts' \
1495'sync:Synchronize an account' \
1496    )
1497    _describe -t commands 'himalaya help account commands' commands "$@"
1498}
1499(( $+functions[_himalaya__flag__add_commands] )) ||
1500_himalaya__flag__add_commands() {
1501    local commands; commands=()
1502    _describe -t commands 'himalaya flag add commands' commands "$@"
1503}
1504(( $+functions[_himalaya__flag__help__add_commands] )) ||
1505_himalaya__flag__help__add_commands() {
1506    local commands; commands=()
1507    _describe -t commands 'himalaya flag help add commands' commands "$@"
1508}
1509(( $+functions[_himalaya__folder__add_commands] )) ||
1510_himalaya__folder__add_commands() {
1511    local commands; commands=()
1512    _describe -t commands 'himalaya folder add commands' commands "$@"
1513}
1514(( $+functions[_himalaya__folder__help__add_commands] )) ||
1515_himalaya__folder__help__add_commands() {
1516    local commands; commands=()
1517    _describe -t commands 'himalaya folder help add commands' commands "$@"
1518}
1519(( $+functions[_himalaya__help__flag__add_commands] )) ||
1520_himalaya__help__flag__add_commands() {
1521    local commands; commands=()
1522    _describe -t commands 'himalaya help flag add commands' commands "$@"
1523}
1524(( $+functions[_himalaya__help__folder__add_commands] )) ||
1525_himalaya__help__folder__add_commands() {
1526    local commands; commands=()
1527    _describe -t commands 'himalaya help folder add commands' commands "$@"
1528}
1529(( $+functions[_himalaya__attachment_commands] )) ||
1530_himalaya__attachment_commands() {
1531    local commands; commands=(
1532'download:Download all attachments for the given message' \
1533'help:Print this message or the help of the given subcommand(s)' \
1534    )
1535    _describe -t commands 'himalaya attachment commands' commands "$@"
1536}
1537(( $+functions[_himalaya__help__attachment_commands] )) ||
1538_himalaya__help__attachment_commands() {
1539    local commands; commands=(
1540'download:Download all attachments for the given message' \
1541    )
1542    _describe -t commands 'himalaya help attachment commands' commands "$@"
1543}
1544(( $+functions[_himalaya__account__check-up_commands] )) ||
1545_himalaya__account__check-up_commands() {
1546    local commands; commands=()
1547    _describe -t commands 'himalaya account check-up commands' commands "$@"
1548}
1549(( $+functions[_himalaya__account__help__check-up_commands] )) ||
1550_himalaya__account__help__check-up_commands() {
1551    local commands; commands=()
1552    _describe -t commands 'himalaya account help check-up commands' commands "$@"
1553}
1554(( $+functions[_himalaya__help__account__check-up_commands] )) ||
1555_himalaya__help__account__check-up_commands() {
1556    local commands; commands=()
1557    _describe -t commands 'himalaya help account check-up commands' commands "$@"
1558}
1559(( $+functions[_himalaya__completion_commands] )) ||
1560_himalaya__completion_commands() {
1561    local commands; commands=()
1562    _describe -t commands 'himalaya completion commands' commands "$@"
1563}
1564(( $+functions[_himalaya__help__completion_commands] )) ||
1565_himalaya__help__completion_commands() {
1566    local commands; commands=()
1567    _describe -t commands 'himalaya help completion commands' commands "$@"
1568}
1569(( $+functions[_himalaya__account__configure_commands] )) ||
1570_himalaya__account__configure_commands() {
1571    local commands; commands=()
1572    _describe -t commands 'himalaya account configure commands' commands "$@"
1573}
1574(( $+functions[_himalaya__account__help__configure_commands] )) ||
1575_himalaya__account__help__configure_commands() {
1576    local commands; commands=()
1577    _describe -t commands 'himalaya account help configure commands' commands "$@"
1578}
1579(( $+functions[_himalaya__help__account__configure_commands] )) ||
1580_himalaya__help__account__configure_commands() {
1581    local commands; commands=()
1582    _describe -t commands 'himalaya help account configure commands' commands "$@"
1583}
1584(( $+functions[_himalaya__help__message__copy_commands] )) ||
1585_himalaya__help__message__copy_commands() {
1586    local commands; commands=()
1587    _describe -t commands 'himalaya help message copy commands' commands "$@"
1588}
1589(( $+functions[_himalaya__message__copy_commands] )) ||
1590_himalaya__message__copy_commands() {
1591    local commands; commands=()
1592    _describe -t commands 'himalaya message copy commands' commands "$@"
1593}
1594(( $+functions[_himalaya__message__help__copy_commands] )) ||
1595_himalaya__message__help__copy_commands() {
1596    local commands; commands=()
1597    _describe -t commands 'himalaya message help copy commands' commands "$@"
1598}
1599(( $+functions[_himalaya__folder__delete_commands] )) ||
1600_himalaya__folder__delete_commands() {
1601    local commands; commands=()
1602    _describe -t commands 'himalaya folder delete commands' commands "$@"
1603}
1604(( $+functions[_himalaya__folder__help__delete_commands] )) ||
1605_himalaya__folder__help__delete_commands() {
1606    local commands; commands=()
1607    _describe -t commands 'himalaya folder help delete commands' commands "$@"
1608}
1609(( $+functions[_himalaya__help__folder__delete_commands] )) ||
1610_himalaya__help__folder__delete_commands() {
1611    local commands; commands=()
1612    _describe -t commands 'himalaya help folder delete commands' commands "$@"
1613}
1614(( $+functions[_himalaya__help__message__delete_commands] )) ||
1615_himalaya__help__message__delete_commands() {
1616    local commands; commands=()
1617    _describe -t commands 'himalaya help message delete commands' commands "$@"
1618}
1619(( $+functions[_himalaya__message__delete_commands] )) ||
1620_himalaya__message__delete_commands() {
1621    local commands; commands=()
1622    _describe -t commands 'himalaya message delete commands' commands "$@"
1623}
1624(( $+functions[_himalaya__message__help__delete_commands] )) ||
1625_himalaya__message__help__delete_commands() {
1626    local commands; commands=()
1627    _describe -t commands 'himalaya message help delete commands' commands "$@"
1628}
1629(( $+functions[_himalaya__attachment__download_commands] )) ||
1630_himalaya__attachment__download_commands() {
1631    local commands; commands=()
1632    _describe -t commands 'himalaya attachment download commands' commands "$@"
1633}
1634(( $+functions[_himalaya__attachment__help__download_commands] )) ||
1635_himalaya__attachment__help__download_commands() {
1636    local commands; commands=()
1637    _describe -t commands 'himalaya attachment help download commands' commands "$@"
1638}
1639(( $+functions[_himalaya__help__attachment__download_commands] )) ||
1640_himalaya__help__attachment__download_commands() {
1641    local commands; commands=()
1642    _describe -t commands 'himalaya help attachment download commands' commands "$@"
1643}
1644(( $+functions[_himalaya__envelope_commands] )) ||
1645_himalaya__envelope_commands() {
1646    local commands; commands=(
1647'list:List all envelopes' \
1648'watch:Watch envelopes for changes' \
1649'help:Print this message or the help of the given subcommand(s)' \
1650    )
1651    _describe -t commands 'himalaya envelope commands' commands "$@"
1652}
1653(( $+functions[_himalaya__help__envelope_commands] )) ||
1654_himalaya__help__envelope_commands() {
1655    local commands; commands=(
1656'list:List all envelopes' \
1657'watch:Watch envelopes for changes' \
1658    )
1659    _describe -t commands 'himalaya help envelope commands' commands "$@"
1660}
1661(( $+functions[_himalaya__folder__expunge_commands] )) ||
1662_himalaya__folder__expunge_commands() {
1663    local commands; commands=()
1664    _describe -t commands 'himalaya folder expunge commands' commands "$@"
1665}
1666(( $+functions[_himalaya__folder__help__expunge_commands] )) ||
1667_himalaya__folder__help__expunge_commands() {
1668    local commands; commands=()
1669    _describe -t commands 'himalaya folder help expunge commands' commands "$@"
1670}
1671(( $+functions[_himalaya__help__folder__expunge_commands] )) ||
1672_himalaya__help__folder__expunge_commands() {
1673    local commands; commands=()
1674    _describe -t commands 'himalaya help folder expunge commands' commands "$@"
1675}
1676(( $+functions[_himalaya__flag_commands] )) ||
1677_himalaya__flag_commands() {
1678    local commands; commands=(
1679'add:Add flag(s) to an envelope' \
1680'set:Replace flag(s) of an envelope' \
1681'remove:Remove flag(s) from an envelope' \
1682'help:Print this message or the help of the given subcommand(s)' \
1683    )
1684    _describe -t commands 'himalaya flag commands' commands "$@"
1685}
1686(( $+functions[_himalaya__help__flag_commands] )) ||
1687_himalaya__help__flag_commands() {
1688    local commands; commands=(
1689'add:Add flag(s) to an envelope' \
1690'set:Replace flag(s) of an envelope' \
1691'remove:Remove flag(s) from an envelope' \
1692    )
1693    _describe -t commands 'himalaya help flag commands' commands "$@"
1694}
1695(( $+functions[_himalaya__folder_commands] )) ||
1696_himalaya__folder_commands() {
1697    local commands; commands=(
1698'add:Create a new folder' \
1699'create:Create a new folder' \
1700'list:List all folders' \
1701'expunge:Expunge a folder' \
1702'purge:Purge a folder' \
1703'delete:Delete a folder' \
1704'help:Print this message or the help of the given subcommand(s)' \
1705    )
1706    _describe -t commands 'himalaya folder commands' commands "$@"
1707}
1708(( $+functions[_himalaya__help__folder_commands] )) ||
1709_himalaya__help__folder_commands() {
1710    local commands; commands=(
1711'add:Create a new folder' \
1712'list:List all folders' \
1713'expunge:Expunge a folder' \
1714'purge:Purge a folder' \
1715'delete:Delete a folder' \
1716    )
1717    _describe -t commands 'himalaya help folder commands' commands "$@"
1718}
1719(( $+functions[_himalaya__help__message__forward_commands] )) ||
1720_himalaya__help__message__forward_commands() {
1721    local commands; commands=()
1722    _describe -t commands 'himalaya help message forward commands' commands "$@"
1723}
1724(( $+functions[_himalaya__help__template__forward_commands] )) ||
1725_himalaya__help__template__forward_commands() {
1726    local commands; commands=()
1727    _describe -t commands 'himalaya help template forward commands' commands "$@"
1728}
1729(( $+functions[_himalaya__message__forward_commands] )) ||
1730_himalaya__message__forward_commands() {
1731    local commands; commands=()
1732    _describe -t commands 'himalaya message forward commands' commands "$@"
1733}
1734(( $+functions[_himalaya__message__help__forward_commands] )) ||
1735_himalaya__message__help__forward_commands() {
1736    local commands; commands=()
1737    _describe -t commands 'himalaya message help forward commands' commands "$@"
1738}
1739(( $+functions[_himalaya__template__forward_commands] )) ||
1740_himalaya__template__forward_commands() {
1741    local commands; commands=()
1742    _describe -t commands 'himalaya template forward commands' commands "$@"
1743}
1744(( $+functions[_himalaya__template__help__forward_commands] )) ||
1745_himalaya__template__help__forward_commands() {
1746    local commands; commands=()
1747    _describe -t commands 'himalaya template help forward commands' commands "$@"
1748}
1749(( $+functions[_himalaya__account__help_commands] )) ||
1750_himalaya__account__help_commands() {
1751    local commands; commands=(
1752'check-up:Check up the given account' \
1753'configure:Configure an account' \
1754'list:List all accounts' \
1755'sync:Synchronize an account' \
1756'help:Print this message or the help of the given subcommand(s)' \
1757    )
1758    _describe -t commands 'himalaya account help commands' commands "$@"
1759}
1760(( $+functions[_himalaya__account__help__help_commands] )) ||
1761_himalaya__account__help__help_commands() {
1762    local commands; commands=()
1763    _describe -t commands 'himalaya account help help commands' commands "$@"
1764}
1765(( $+functions[_himalaya__attachment__help_commands] )) ||
1766_himalaya__attachment__help_commands() {
1767    local commands; commands=(
1768'download:Download all attachments for the given message' \
1769'help:Print this message or the help of the given subcommand(s)' \
1770    )
1771    _describe -t commands 'himalaya attachment help commands' commands "$@"
1772}
1773(( $+functions[_himalaya__attachment__help__help_commands] )) ||
1774_himalaya__attachment__help__help_commands() {
1775    local commands; commands=()
1776    _describe -t commands 'himalaya attachment help help commands' commands "$@"
1777}
1778(( $+functions[_himalaya__envelope__help_commands] )) ||
1779_himalaya__envelope__help_commands() {
1780    local commands; commands=(
1781'list:List all envelopes' \
1782'watch:Watch envelopes for changes' \
1783'help:Print this message or the help of the given subcommand(s)' \
1784    )
1785    _describe -t commands 'himalaya envelope help commands' commands "$@"
1786}
1787(( $+functions[_himalaya__envelope__help__help_commands] )) ||
1788_himalaya__envelope__help__help_commands() {
1789    local commands; commands=()
1790    _describe -t commands 'himalaya envelope help help commands' commands "$@"
1791}
1792(( $+functions[_himalaya__flag__help_commands] )) ||
1793_himalaya__flag__help_commands() {
1794    local commands; commands=(
1795'add:Add flag(s) to an envelope' \
1796'set:Replace flag(s) of an envelope' \
1797'remove:Remove flag(s) from an envelope' \
1798'help:Print this message or the help of the given subcommand(s)' \
1799    )
1800    _describe -t commands 'himalaya flag help commands' commands "$@"
1801}
1802(( $+functions[_himalaya__flag__help__help_commands] )) ||
1803_himalaya__flag__help__help_commands() {
1804    local commands; commands=()
1805    _describe -t commands 'himalaya flag help help commands' commands "$@"
1806}
1807(( $+functions[_himalaya__folder__help_commands] )) ||
1808_himalaya__folder__help_commands() {
1809    local commands; commands=(
1810'add:Create a new folder' \
1811'list:List all folders' \
1812'expunge:Expunge a folder' \
1813'purge:Purge a folder' \
1814'delete:Delete a folder' \
1815'help:Print this message or the help of the given subcommand(s)' \
1816    )
1817    _describe -t commands 'himalaya folder help commands' commands "$@"
1818}
1819(( $+functions[_himalaya__folder__help__help_commands] )) ||
1820_himalaya__folder__help__help_commands() {
1821    local commands; commands=()
1822    _describe -t commands 'himalaya folder help help commands' commands "$@"
1823}
1824(( $+functions[_himalaya__help_commands] )) ||
1825_himalaya__help_commands() {
1826    local commands; commands=(
1827'account:Manage accounts' \
1828'folder:Manage folders' \
1829'envelope:Manage envelopes' \
1830'flag:Manage flags' \
1831'message:Manage messages' \
1832'attachment:Manage attachments' \
1833'template:Manage templates' \
1834'manual:Generate manual pages to a directory' \
1835'completion:Print completion script for a shell to stdout' \
1836'help:Print this message or the help of the given subcommand(s)' \
1837    )
1838    _describe -t commands 'himalaya help commands' commands "$@"
1839}
1840(( $+functions[_himalaya__help__help_commands] )) ||
1841_himalaya__help__help_commands() {
1842    local commands; commands=()
1843    _describe -t commands 'himalaya help help commands' commands "$@"
1844}
1845(( $+functions[_himalaya__message__help_commands] )) ||
1846_himalaya__message__help_commands() {
1847    local commands; commands=(
1848'read:Read a message' \
1849'write:Write a new message' \
1850'reply:Reply to a message' \
1851'forward:Forward a message' \
1852'mailto:Parse and edit a message from a mailto URL string' \
1853'save:Save a message to a folder' \
1854'send:Send a message' \
1855'copy:Copy a message from a source folder to a target folder' \
1856'move:Move a message from a source folder to a target folder' \
1857'delete:Mark as deleted a message from a folder' \
1858'help:Print this message or the help of the given subcommand(s)' \
1859    )
1860    _describe -t commands 'himalaya message help commands' commands "$@"
1861}
1862(( $+functions[_himalaya__message__help__help_commands] )) ||
1863_himalaya__message__help__help_commands() {
1864    local commands; commands=()
1865    _describe -t commands 'himalaya message help help commands' commands "$@"
1866}
1867(( $+functions[_himalaya__template__help_commands] )) ||
1868_himalaya__template__help_commands() {
1869    local commands; commands=(
1870'write:Generate a template for writing a new message from scratch' \
1871'reply:Generate a template for replying to a message' \
1872'forward:Generate a template for forwarding a message' \
1873'save:Save a template to a folder' \
1874'send:Send a template' \
1875'help:Print this message or the help of the given subcommand(s)' \
1876    )
1877    _describe -t commands 'himalaya template help commands' commands "$@"
1878}
1879(( $+functions[_himalaya__template__help__help_commands] )) ||
1880_himalaya__template__help__help_commands() {
1881    local commands; commands=()
1882    _describe -t commands 'himalaya template help help commands' commands "$@"
1883}
1884(( $+functions[_himalaya__account__help__list_commands] )) ||
1885_himalaya__account__help__list_commands() {
1886    local commands; commands=()
1887    _describe -t commands 'himalaya account help list commands' commands "$@"
1888}
1889(( $+functions[_himalaya__account__list_commands] )) ||
1890_himalaya__account__list_commands() {
1891    local commands; commands=()
1892    _describe -t commands 'himalaya account list commands' commands "$@"
1893}
1894(( $+functions[_himalaya__envelope__help__list_commands] )) ||
1895_himalaya__envelope__help__list_commands() {
1896    local commands; commands=()
1897    _describe -t commands 'himalaya envelope help list commands' commands "$@"
1898}
1899(( $+functions[_himalaya__envelope__list_commands] )) ||
1900_himalaya__envelope__list_commands() {
1901    local commands; commands=()
1902    _describe -t commands 'himalaya envelope list commands' commands "$@"
1903}
1904(( $+functions[_himalaya__folder__help__list_commands] )) ||
1905_himalaya__folder__help__list_commands() {
1906    local commands; commands=()
1907    _describe -t commands 'himalaya folder help list commands' commands "$@"
1908}
1909(( $+functions[_himalaya__folder__list_commands] )) ||
1910_himalaya__folder__list_commands() {
1911    local commands; commands=()
1912    _describe -t commands 'himalaya folder list commands' commands "$@"
1913}
1914(( $+functions[_himalaya__help__account__list_commands] )) ||
1915_himalaya__help__account__list_commands() {
1916    local commands; commands=()
1917    _describe -t commands 'himalaya help account list commands' commands "$@"
1918}
1919(( $+functions[_himalaya__help__envelope__list_commands] )) ||
1920_himalaya__help__envelope__list_commands() {
1921    local commands; commands=()
1922    _describe -t commands 'himalaya help envelope list commands' commands "$@"
1923}
1924(( $+functions[_himalaya__help__folder__list_commands] )) ||
1925_himalaya__help__folder__list_commands() {
1926    local commands; commands=()
1927    _describe -t commands 'himalaya help folder list commands' commands "$@"
1928}
1929(( $+functions[_himalaya__help__message__mailto_commands] )) ||
1930_himalaya__help__message__mailto_commands() {
1931    local commands; commands=()
1932    _describe -t commands 'himalaya help message mailto commands' commands "$@"
1933}
1934(( $+functions[_himalaya__message__help__mailto_commands] )) ||
1935_himalaya__message__help__mailto_commands() {
1936    local commands; commands=()
1937    _describe -t commands 'himalaya message help mailto commands' commands "$@"
1938}
1939(( $+functions[_himalaya__message__mailto_commands] )) ||
1940_himalaya__message__mailto_commands() {
1941    local commands; commands=()
1942    _describe -t commands 'himalaya message mailto commands' commands "$@"
1943}
1944(( $+functions[_himalaya__help__manual_commands] )) ||
1945_himalaya__help__manual_commands() {
1946    local commands; commands=()
1947    _describe -t commands 'himalaya help manual commands' commands "$@"
1948}
1949(( $+functions[_himalaya__manual_commands] )) ||
1950_himalaya__manual_commands() {
1951    local commands; commands=()
1952    _describe -t commands 'himalaya manual commands' commands "$@"
1953}
1954(( $+functions[_himalaya__help__message_commands] )) ||
1955_himalaya__help__message_commands() {
1956    local commands; commands=(
1957'read:Read a message' \
1958'write:Write a new message' \
1959'reply:Reply to a message' \
1960'forward:Forward a message' \
1961'mailto:Parse and edit a message from a mailto URL string' \
1962'save:Save a message to a folder' \
1963'send:Send a message' \
1964'copy:Copy a message from a source folder to a target folder' \
1965'move:Move a message from a source folder to a target folder' \
1966'delete:Mark as deleted a message from a folder' \
1967    )
1968    _describe -t commands 'himalaya help message commands' commands "$@"
1969}
1970(( $+functions[_himalaya__message_commands] )) ||
1971_himalaya__message_commands() {
1972    local commands; commands=(
1973'read:Read a message' \
1974'write:Write a new message' \
1975'reply:Reply to a message' \
1976'forward:Forward a message' \
1977'mailto:Parse and edit a message from a mailto URL string' \
1978'save:Save a message to a folder' \
1979'send:Send a message' \
1980'copy:Copy a message from a source folder to a target folder' \
1981'move:Move a message from a source folder to a target folder' \
1982'delete:Mark as deleted a message from a folder' \
1983'help:Print this message or the help of the given subcommand(s)' \
1984    )
1985    _describe -t commands 'himalaya message commands' commands "$@"
1986}
1987(( $+functions[_himalaya__help__message__move_commands] )) ||
1988_himalaya__help__message__move_commands() {
1989    local commands; commands=()
1990    _describe -t commands 'himalaya help message move commands' commands "$@"
1991}
1992(( $+functions[_himalaya__message__help__move_commands] )) ||
1993_himalaya__message__help__move_commands() {
1994    local commands; commands=()
1995    _describe -t commands 'himalaya message help move commands' commands "$@"
1996}
1997(( $+functions[_himalaya__message__move_commands] )) ||
1998_himalaya__message__move_commands() {
1999    local commands; commands=()
2000    _describe -t commands 'himalaya message move commands' commands "$@"
2001}
2002(( $+functions[_himalaya__folder__help__purge_commands] )) ||
2003_himalaya__folder__help__purge_commands() {
2004    local commands; commands=()
2005    _describe -t commands 'himalaya folder help purge commands' commands "$@"
2006}
2007(( $+functions[_himalaya__folder__purge_commands] )) ||
2008_himalaya__folder__purge_commands() {
2009    local commands; commands=()
2010    _describe -t commands 'himalaya folder purge commands' commands "$@"
2011}
2012(( $+functions[_himalaya__help__folder__purge_commands] )) ||
2013_himalaya__help__folder__purge_commands() {
2014    local commands; commands=()
2015    _describe -t commands 'himalaya help folder purge commands' commands "$@"
2016}
2017(( $+functions[_himalaya__help__message__read_commands] )) ||
2018_himalaya__help__message__read_commands() {
2019    local commands; commands=()
2020    _describe -t commands 'himalaya help message read commands' commands "$@"
2021}
2022(( $+functions[_himalaya__message__help__read_commands] )) ||
2023_himalaya__message__help__read_commands() {
2024    local commands; commands=()
2025    _describe -t commands 'himalaya message help read commands' commands "$@"
2026}
2027(( $+functions[_himalaya__message__read_commands] )) ||
2028_himalaya__message__read_commands() {
2029    local commands; commands=()
2030    _describe -t commands 'himalaya message read commands' commands "$@"
2031}
2032(( $+functions[_himalaya__flag__help__remove_commands] )) ||
2033_himalaya__flag__help__remove_commands() {
2034    local commands; commands=()
2035    _describe -t commands 'himalaya flag help remove commands' commands "$@"
2036}
2037(( $+functions[_himalaya__flag__remove_commands] )) ||
2038_himalaya__flag__remove_commands() {
2039    local commands; commands=()
2040    _describe -t commands 'himalaya flag remove commands' commands "$@"
2041}
2042(( $+functions[_himalaya__help__flag__remove_commands] )) ||
2043_himalaya__help__flag__remove_commands() {
2044    local commands; commands=()
2045    _describe -t commands 'himalaya help flag remove commands' commands "$@"
2046}
2047(( $+functions[_himalaya__help__message__reply_commands] )) ||
2048_himalaya__help__message__reply_commands() {
2049    local commands; commands=()
2050    _describe -t commands 'himalaya help message reply commands' commands "$@"
2051}
2052(( $+functions[_himalaya__help__template__reply_commands] )) ||
2053_himalaya__help__template__reply_commands() {
2054    local commands; commands=()
2055    _describe -t commands 'himalaya help template reply commands' commands "$@"
2056}
2057(( $+functions[_himalaya__message__help__reply_commands] )) ||
2058_himalaya__message__help__reply_commands() {
2059    local commands; commands=()
2060    _describe -t commands 'himalaya message help reply commands' commands "$@"
2061}
2062(( $+functions[_himalaya__message__reply_commands] )) ||
2063_himalaya__message__reply_commands() {
2064    local commands; commands=()
2065    _describe -t commands 'himalaya message reply commands' commands "$@"
2066}
2067(( $+functions[_himalaya__template__help__reply_commands] )) ||
2068_himalaya__template__help__reply_commands() {
2069    local commands; commands=()
2070    _describe -t commands 'himalaya template help reply commands' commands "$@"
2071}
2072(( $+functions[_himalaya__template__reply_commands] )) ||
2073_himalaya__template__reply_commands() {
2074    local commands; commands=()
2075    _describe -t commands 'himalaya template reply commands' commands "$@"
2076}
2077(( $+functions[_himalaya__help__message__save_commands] )) ||
2078_himalaya__help__message__save_commands() {
2079    local commands; commands=()
2080    _describe -t commands 'himalaya help message save commands' commands "$@"
2081}
2082(( $+functions[_himalaya__help__template__save_commands] )) ||
2083_himalaya__help__template__save_commands() {
2084    local commands; commands=()
2085    _describe -t commands 'himalaya help template save commands' commands "$@"
2086}
2087(( $+functions[_himalaya__message__help__save_commands] )) ||
2088_himalaya__message__help__save_commands() {
2089    local commands; commands=()
2090    _describe -t commands 'himalaya message help save commands' commands "$@"
2091}
2092(( $+functions[_himalaya__message__save_commands] )) ||
2093_himalaya__message__save_commands() {
2094    local commands; commands=()
2095    _describe -t commands 'himalaya message save commands' commands "$@"
2096}
2097(( $+functions[_himalaya__template__help__save_commands] )) ||
2098_himalaya__template__help__save_commands() {
2099    local commands; commands=()
2100    _describe -t commands 'himalaya template help save commands' commands "$@"
2101}
2102(( $+functions[_himalaya__template__save_commands] )) ||
2103_himalaya__template__save_commands() {
2104    local commands; commands=()
2105    _describe -t commands 'himalaya template save commands' commands "$@"
2106}
2107(( $+functions[_himalaya__help__message__send_commands] )) ||
2108_himalaya__help__message__send_commands() {
2109    local commands; commands=()
2110    _describe -t commands 'himalaya help message send commands' commands "$@"
2111}
2112(( $+functions[_himalaya__help__template__send_commands] )) ||
2113_himalaya__help__template__send_commands() {
2114    local commands; commands=()
2115    _describe -t commands 'himalaya help template send commands' commands "$@"
2116}
2117(( $+functions[_himalaya__message__help__send_commands] )) ||
2118_himalaya__message__help__send_commands() {
2119    local commands; commands=()
2120    _describe -t commands 'himalaya message help send commands' commands "$@"
2121}
2122(( $+functions[_himalaya__message__send_commands] )) ||
2123_himalaya__message__send_commands() {
2124    local commands; commands=()
2125    _describe -t commands 'himalaya message send commands' commands "$@"
2126}
2127(( $+functions[_himalaya__template__help__send_commands] )) ||
2128_himalaya__template__help__send_commands() {
2129    local commands; commands=()
2130    _describe -t commands 'himalaya template help send commands' commands "$@"
2131}
2132(( $+functions[_himalaya__template__send_commands] )) ||
2133_himalaya__template__send_commands() {
2134    local commands; commands=()
2135    _describe -t commands 'himalaya template send commands' commands "$@"
2136}
2137(( $+functions[_himalaya__flag__help__set_commands] )) ||
2138_himalaya__flag__help__set_commands() {
2139    local commands; commands=()
2140    _describe -t commands 'himalaya flag help set commands' commands "$@"
2141}
2142(( $+functions[_himalaya__flag__set_commands] )) ||
2143_himalaya__flag__set_commands() {
2144    local commands; commands=()
2145    _describe -t commands 'himalaya flag set commands' commands "$@"
2146}
2147(( $+functions[_himalaya__help__flag__set_commands] )) ||
2148_himalaya__help__flag__set_commands() {
2149    local commands; commands=()
2150    _describe -t commands 'himalaya help flag set commands' commands "$@"
2151}
2152(( $+functions[_himalaya__account__help__sync_commands] )) ||
2153_himalaya__account__help__sync_commands() {
2154    local commands; commands=()
2155    _describe -t commands 'himalaya account help sync commands' commands "$@"
2156}
2157(( $+functions[_himalaya__account__sync_commands] )) ||
2158_himalaya__account__sync_commands() {
2159    local commands; commands=()
2160    _describe -t commands 'himalaya account sync commands' commands "$@"
2161}
2162(( $+functions[_himalaya__help__account__sync_commands] )) ||
2163_himalaya__help__account__sync_commands() {
2164    local commands; commands=()
2165    _describe -t commands 'himalaya help account sync commands' commands "$@"
2166}
2167(( $+functions[_himalaya__help__template_commands] )) ||
2168_himalaya__help__template_commands() {
2169    local commands; commands=(
2170'write:Generate a template for writing a new message from scratch' \
2171'reply:Generate a template for replying to a message' \
2172'forward:Generate a template for forwarding a message' \
2173'save:Save a template to a folder' \
2174'send:Send a template' \
2175    )
2176    _describe -t commands 'himalaya help template commands' commands "$@"
2177}
2178(( $+functions[_himalaya__template_commands] )) ||
2179_himalaya__template_commands() {
2180    local commands; commands=(
2181'write:Generate a template for writing a new message from scratch' \
2182'reply:Generate a template for replying to a message' \
2183'forward:Generate a template for forwarding a message' \
2184'save:Save a template to a folder' \
2185'send:Send a template' \
2186'help:Print this message or the help of the given subcommand(s)' \
2187    )
2188    _describe -t commands 'himalaya template commands' commands "$@"
2189}
2190(( $+functions[_himalaya__envelope__help__watch_commands] )) ||
2191_himalaya__envelope__help__watch_commands() {
2192    local commands; commands=()
2193    _describe -t commands 'himalaya envelope help watch commands' commands "$@"
2194}
2195(( $+functions[_himalaya__envelope__watch_commands] )) ||
2196_himalaya__envelope__watch_commands() {
2197    local commands; commands=()
2198    _describe -t commands 'himalaya envelope watch commands' commands "$@"
2199}
2200(( $+functions[_himalaya__help__envelope__watch_commands] )) ||
2201_himalaya__help__envelope__watch_commands() {
2202    local commands; commands=()
2203    _describe -t commands 'himalaya help envelope watch commands' commands "$@"
2204}
2205(( $+functions[_himalaya__help__message__write_commands] )) ||
2206_himalaya__help__message__write_commands() {
2207    local commands; commands=()
2208    _describe -t commands 'himalaya help message write commands' commands "$@"
2209}
2210(( $+functions[_himalaya__help__template__write_commands] )) ||
2211_himalaya__help__template__write_commands() {
2212    local commands; commands=()
2213    _describe -t commands 'himalaya help template write commands' commands "$@"
2214}
2215(( $+functions[_himalaya__message__help__write_commands] )) ||
2216_himalaya__message__help__write_commands() {
2217    local commands; commands=()
2218    _describe -t commands 'himalaya message help write commands' commands "$@"
2219}
2220(( $+functions[_himalaya__message__write_commands] )) ||
2221_himalaya__message__write_commands() {
2222    local commands; commands=()
2223    _describe -t commands 'himalaya message write commands' commands "$@"
2224}
2225(( $+functions[_himalaya__template__help__write_commands] )) ||
2226_himalaya__template__help__write_commands() {
2227    local commands; commands=()
2228    _describe -t commands 'himalaya template help write commands' commands "$@"
2229}
2230(( $+functions[_himalaya__template__write_commands] )) ||
2231_himalaya__template__write_commands() {
2232    local commands; commands=()
2233    _describe -t commands 'himalaya template write commands' commands "$@"
2234}
2235
2236if [ "$funcstack[1]" = "_himalaya" ]; then
2237    _himalaya "$@"
2238else
2239    compdef _himalaya himalaya
2240fi