#compdef zond

autoload -U is-at-least

_zond() {
    typeset -A opt_args
    typeset -a _arguments_options
    local ret=1

    if is-at-least 5.2; then
        _arguments_options=(-s -S -C)
    else
        _arguments_options=(-s -C)
    fi

    local context curcontext="$curcontext" state line
    _arguments "${_arguments_options[@]}" : \
'--presentation=[How to draw this run. Overrides the settings file for one invocation]:MODE:(pipe minimal fancy)' \
'--colour=[Whether to colour the output]:WHEN:(auto always never)' \
'--color=[Whether to colour the output]:WHEN:(auto always never)' \
'*-v[Show more detail. Repeat for more still]' \
'*--verbose[Show more detail. Repeat for more still]' \
'(-v --verbose)-q[Show nothing but errors and the hosts found]' \
'(-v --verbose)--quiet[Show nothing but errors and the hosts found]' \
'(--presentation --minimal --fancy)--pipe[Shorthand for \`--presentation pipe\`]' \
'(--presentation --fancy)--minimal[Shorthand for \`--presentation minimal\`]' \
'(--presentation)--fancy[Shorthand for \`--presentation fancy\`, the default, for a run whose settings file says otherwise]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'-V[Print version]' \
'--version[Print version]' \
":: :_zond_commands" \
"*::: :->zond" \
&& ret=0
    case $state in
    (zond)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zond-command-$line[1]:"
        case $line[1] in
            (discover)
_arguments "${_arguments_options[@]}" : \
'*-i+[Read targets from FILE as well, one or more to a line; \`-\` reads them from standard input]:FILE:_default' \
'*--input-file=[Read targets from FILE as well, one or more to a line; \`-\` reads them from standard input]:FILE:_default' \
'-T+[How gently to treat the network\: \`-T0\` gentlest to \`-T5\` fastest]:LEVEL:(trickle sparing gentle normal brisk hurried)' \
'--pace=[How gently to treat the network\: \`-T0\` gentlest to \`-T5\` fastest]:LEVEL:(trickle sparing gentle normal brisk hurried)' \
'--effort=[How hard the scan tries before it accepts silence as an answer]:LEVEL:(single fast balanced thorough)' \
'--max-attempts=[Replace the attempt budget outright, whatever --effort implies]:N:_default' \
'--timeout-scale=[Multiply how long the scan is willing to wait]:FACTOR:_default' \
'--max-probe-rate=[The fastest the scan may put probes on the wire, in probes per second]:PPS:_default' \
'--max-rate=[The fastest the scan may put probes on the wire, in probes per second]:PPS:_default' \
'--min-probe-rate=[The slowest the scan may fall to, in probes per second]:PPS:_default' \
'--min-rate=[The slowest the scan may fall to, in probes per second]:PPS:_default' \
'--host-timeout=[Give up on a host that is still answering after this long]:DURATION:_default' \
'--scan-timeout=[Give up on the whole scan after this long]:DURATION:_default' \
'--probe-interval=[Keep at least this long between any two probes the scan sends, whatever host each is aimed at]:GAP:_default' \
'--host-probe-interval=[Keep at least this long between two probes aimed at one host]:GAP:_default' \
'--send-mode=[How raw probes are placed on the wire]:MODE:(auto raw-socket ethernet)' \
'-e+[Send probes to routed targets from this interface, whatever the routing table says]:NAME:_default' \
'--send-interface=[Send probes to routed targets from this interface, whatever the routing table says]:NAME:_default' \
'--os-detection=[How far to go identifying the system behind each host]:LEVEL:(off passive active aggressive)' \
'--ttl=[Set the probes'\'' hop limit, rather than this host'\''s default]:HOPS:_default' \
'-g+[Send every probe from this source port]:PORT:_default' \
'--source-port=[Send every probe from this source port]:PORT:_default' \
'*-D+[Mingle the real probes with decoys from these addresses]:IP:_default' \
'*--decoy=[Mingle the real probes with decoys from these addresses]:IP:_default' \
'--mtu=[Fragment every crafted probe to this MTU, in bytes]:MTU:_default' \
'--data-length=[Append this many bytes of padding to each crafted probe]:LEN:_default' \
'--spoof-mac=[Send crafted frames from this hardware address]:MAC:_default' \
'--scanflags=[Set the TCP flags on every port probe by name or number]:FLAGS:_default' \
'*-x+[Addresses this run may not probe, whatever the targets say]:TARGET:_default' \
'*--exclude=[Addresses this run may not probe, whatever the targets say]:TARGET:_default' \
'*--exclude-file=[Read addresses this run may not probe from FILE, in the form \`-i\` reads targets in]:FILE:_default' \
'--profile=[Use a named profile from the engine'\''s settings file]:NAME:_default' \
'--min-risk=[The lowest grade of finding to draw]:GRADE:(info low medium high critical)' \
'*-o+[Write the report to FILE, in the format its extension names]:FILE:_files' \
'*--output=[Write the report to FILE, in the format its extension names]:FILE:_files' \
'*--output-as=[Write the report to FILE in the format you name\: \`--output-as json=out\`]:FORMAT=FILE:_default' \
'--output-all=[Write every format this build can produce, each named after BASE]:BASE:_files' \
'--presentation=[How to draw this run. Overrides the settings file for one invocation]:MODE:(pipe minimal fancy)' \
'--colour=[Whether to colour the output]:WHEN:(auto always never)' \
'--color=[Whether to colour the output]:WHEN:(auto always never)' \
'--no-dampen[Spend the full probe budget on hosts that answer nothing at all]' \
'(--os-detection)*-O[Identify the system behind each host by probing it\: \`-O\` actively, \`-OO\` as thoroughly as this engine can]' \
'--traceroute[Measure the route to each host that answered]' \
'--badsum[Give every crafted TCP probe a deliberately wrong checksum]' \
'-n[Send no DNS traffic, and name hosts from the hosts file alone]' \
'--no-dns[Send no DNS traffic, and name hosts from the hosts file alone]' \
'--redact[Mask host and domain names, hardware addresses and IPv6 host parts in the output]' \
'--explain[Show the working behind everything\: \`--reason\`, \`--evidence\` and \`--remedy\` at once]' \
'--reason[Show which packet settled each port, and who sent a refusal]' \
'--risks[List every finding, not the summary the block draws]' \
'--remedy[Show what to do about each finding]' \
'--evidence[Show the bytes each finding was drawn from]' \
'--no-journal[Do not write down how far this sweep gets]' \
'*-v[Show more detail. Repeat for more still]' \
'*--verbose[Show more detail. Repeat for more still]' \
'(-v --verbose)-q[Show nothing but errors and the hosts found]' \
'(-v --verbose)--quiet[Show nothing but errors and the hosts found]' \
'(--presentation --minimal --fancy)--pipe[Shorthand for \`--presentation pipe\`]' \
'(--presentation --fancy)--minimal[Shorthand for \`--presentation minimal\`]' \
'(--presentation)--fancy[Shorthand for \`--presentation fancy\`, the default, for a run whose settings file says otherwise]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::targets -- What to scan\: an address, a range, a CIDR block, a hostname, or `lan`:_default' \
&& ret=0
;;
(d)
_arguments "${_arguments_options[@]}" : \
'*-i+[Read targets from FILE as well, one or more to a line; \`-\` reads them from standard input]:FILE:_default' \
'*--input-file=[Read targets from FILE as well, one or more to a line; \`-\` reads them from standard input]:FILE:_default' \
'-T+[How gently to treat the network\: \`-T0\` gentlest to \`-T5\` fastest]:LEVEL:(trickle sparing gentle normal brisk hurried)' \
'--pace=[How gently to treat the network\: \`-T0\` gentlest to \`-T5\` fastest]:LEVEL:(trickle sparing gentle normal brisk hurried)' \
'--effort=[How hard the scan tries before it accepts silence as an answer]:LEVEL:(single fast balanced thorough)' \
'--max-attempts=[Replace the attempt budget outright, whatever --effort implies]:N:_default' \
'--timeout-scale=[Multiply how long the scan is willing to wait]:FACTOR:_default' \
'--max-probe-rate=[The fastest the scan may put probes on the wire, in probes per second]:PPS:_default' \
'--max-rate=[The fastest the scan may put probes on the wire, in probes per second]:PPS:_default' \
'--min-probe-rate=[The slowest the scan may fall to, in probes per second]:PPS:_default' \
'--min-rate=[The slowest the scan may fall to, in probes per second]:PPS:_default' \
'--host-timeout=[Give up on a host that is still answering after this long]:DURATION:_default' \
'--scan-timeout=[Give up on the whole scan after this long]:DURATION:_default' \
'--probe-interval=[Keep at least this long between any two probes the scan sends, whatever host each is aimed at]:GAP:_default' \
'--host-probe-interval=[Keep at least this long between two probes aimed at one host]:GAP:_default' \
'--send-mode=[How raw probes are placed on the wire]:MODE:(auto raw-socket ethernet)' \
'-e+[Send probes to routed targets from this interface, whatever the routing table says]:NAME:_default' \
'--send-interface=[Send probes to routed targets from this interface, whatever the routing table says]:NAME:_default' \
'--os-detection=[How far to go identifying the system behind each host]:LEVEL:(off passive active aggressive)' \
'--ttl=[Set the probes'\'' hop limit, rather than this host'\''s default]:HOPS:_default' \
'-g+[Send every probe from this source port]:PORT:_default' \
'--source-port=[Send every probe from this source port]:PORT:_default' \
'*-D+[Mingle the real probes with decoys from these addresses]:IP:_default' \
'*--decoy=[Mingle the real probes with decoys from these addresses]:IP:_default' \
'--mtu=[Fragment every crafted probe to this MTU, in bytes]:MTU:_default' \
'--data-length=[Append this many bytes of padding to each crafted probe]:LEN:_default' \
'--spoof-mac=[Send crafted frames from this hardware address]:MAC:_default' \
'--scanflags=[Set the TCP flags on every port probe by name or number]:FLAGS:_default' \
'*-x+[Addresses this run may not probe, whatever the targets say]:TARGET:_default' \
'*--exclude=[Addresses this run may not probe, whatever the targets say]:TARGET:_default' \
'*--exclude-file=[Read addresses this run may not probe from FILE, in the form \`-i\` reads targets in]:FILE:_default' \
'--profile=[Use a named profile from the engine'\''s settings file]:NAME:_default' \
'--min-risk=[The lowest grade of finding to draw]:GRADE:(info low medium high critical)' \
'*-o+[Write the report to FILE, in the format its extension names]:FILE:_files' \
'*--output=[Write the report to FILE, in the format its extension names]:FILE:_files' \
'*--output-as=[Write the report to FILE in the format you name\: \`--output-as json=out\`]:FORMAT=FILE:_default' \
'--output-all=[Write every format this build can produce, each named after BASE]:BASE:_files' \
'--presentation=[How to draw this run. Overrides the settings file for one invocation]:MODE:(pipe minimal fancy)' \
'--colour=[Whether to colour the output]:WHEN:(auto always never)' \
'--color=[Whether to colour the output]:WHEN:(auto always never)' \
'--no-dampen[Spend the full probe budget on hosts that answer nothing at all]' \
'(--os-detection)*-O[Identify the system behind each host by probing it\: \`-O\` actively, \`-OO\` as thoroughly as this engine can]' \
'--traceroute[Measure the route to each host that answered]' \
'--badsum[Give every crafted TCP probe a deliberately wrong checksum]' \
'-n[Send no DNS traffic, and name hosts from the hosts file alone]' \
'--no-dns[Send no DNS traffic, and name hosts from the hosts file alone]' \
'--redact[Mask host and domain names, hardware addresses and IPv6 host parts in the output]' \
'--explain[Show the working behind everything\: \`--reason\`, \`--evidence\` and \`--remedy\` at once]' \
'--reason[Show which packet settled each port, and who sent a refusal]' \
'--risks[List every finding, not the summary the block draws]' \
'--remedy[Show what to do about each finding]' \
'--evidence[Show the bytes each finding was drawn from]' \
'--no-journal[Do not write down how far this sweep gets]' \
'*-v[Show more detail. Repeat for more still]' \
'*--verbose[Show more detail. Repeat for more still]' \
'(-v --verbose)-q[Show nothing but errors and the hosts found]' \
'(-v --verbose)--quiet[Show nothing but errors and the hosts found]' \
'(--presentation --minimal --fancy)--pipe[Shorthand for \`--presentation pipe\`]' \
'(--presentation --fancy)--minimal[Shorthand for \`--presentation minimal\`]' \
'(--presentation)--fancy[Shorthand for \`--presentation fancy\`, the default, for a run whose settings file says otherwise]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::targets -- What to scan\: an address, a range, a CIDR block, a hostname, or `lan`:_default' \
&& ret=0
;;
(scan)
_arguments "${_arguments_options[@]}" : \
'*-i+[Read targets from FILE as well, one or more to a line; \`-\` reads them from standard input]:FILE:_default' \
'*--input-file=[Read targets from FILE as well, one or more to a line; \`-\` reads them from standard input]:FILE:_default' \
'(--top-ports --top-ports-udp -F)-p+[Which ports to probe\: \`22,80,443\`, \`1-1024\`, \`u\:53,161\` for UDP, \`s\:2905\` for SCTP]:PORTS:_default' \
'(--top-ports --top-ports-udp -F)--ports=[Which ports to probe\: \`22,80,443\`, \`1-1024\`, \`u\:53,161\` for UDP, \`s\:2905\` for SCTP]:PORTS:_default' \
'(-p --ports)--top-ports=[Probe the N TCP ports most likely to be listening]:N:_default' \
'(-p --ports)--top-ports-udp=[Probe the N UDP ports most likely to be listening]:N:_default' \
'*--exclude-ports=[Ports to send nothing at all, on any target\: \`9100-9107\`, \`u\:161\`]:PORTS:_default' \
'-d+[How intrusive a detection the scan may run against what it identifies]::LEVEL:(off passive active-benign active-mutating exploit dos)' \
'--detect=[How intrusive a detection the scan may run against what it identifies]::LEVEL:(off passive active-benign active-mutating exploit dos)' \
'--service-detection=[How far to go to identify what is listening behind each open port]:LEVEL:(off banner probe thorough)' \
'--cve-catalogue=[Correlate against a vulnerability catalogue on disk, beside the one this build ships]:PATH:_files' \
'--cve-catalog=[Correlate against a vulnerability catalogue on disk, beside the one this build ships]:PATH:_files' \
'*--load=[A detection file, or a directory of them, to run alongside the built-in corpus. Repeatable]:PATH:_files' \
'--bundle=[A directory holding a signed detection bundle\: somebody else'\''s detections]:DIR:_files' \
'--trust-key=[The public key file a bundle must be signed by\: the \`.pub\` that \`detections keygen\` writes]:FILE:_files' \
'--tcp-technique=[Which TCP segment a probe carries, and so what its answers mean]:TECHNIQUE:(syn fin null xmas maimon ack window)' \
'*-s+[What kind of scan to run, by letter\: \`-sS\` for SYN, \`-sU\` for UDP, \`-sV\` for service detection]:LETTERS:_default' \
'*--scan-type=[What kind of scan to run, by letter\: \`-sS\` for SYN, \`-sU\` for UDP, \`-sV\` for service detection]:LETTERS:_default' \
'--sctp-technique=[Which SCTP probe carries the scan, for the ports named \`s\:\`]:TECHNIQUE:(init cookie-echo)' \
'--idle-scan=[Read the target'\''s TCP ports off a third party'\''s IP-ID counter]:ZOMBIE:_default' \
'--ip-protocols=[Ask each host which IP protocols its stack takes delivery of]:LIST:_default' \
'-T+[How gently to treat the network\: \`-T0\` gentlest to \`-T5\` fastest]:LEVEL:(trickle sparing gentle normal brisk hurried)' \
'--pace=[How gently to treat the network\: \`-T0\` gentlest to \`-T5\` fastest]:LEVEL:(trickle sparing gentle normal brisk hurried)' \
'--effort=[How hard the scan tries before it accepts silence as an answer]:LEVEL:(single fast balanced thorough)' \
'--max-attempts=[Replace the attempt budget outright, whatever --effort implies]:N:_default' \
'--timeout-scale=[Multiply how long the scan is willing to wait]:FACTOR:_default' \
'--max-probe-rate=[The fastest the scan may put probes on the wire, in probes per second]:PPS:_default' \
'--max-rate=[The fastest the scan may put probes on the wire, in probes per second]:PPS:_default' \
'--min-probe-rate=[The slowest the scan may fall to, in probes per second]:PPS:_default' \
'--min-rate=[The slowest the scan may fall to, in probes per second]:PPS:_default' \
'--host-timeout=[Give up on a host that is still answering after this long]:DURATION:_default' \
'--scan-timeout=[Give up on the whole scan after this long]:DURATION:_default' \
'--probe-interval=[Keep at least this long between any two probes the scan sends, whatever host each is aimed at]:GAP:_default' \
'--host-probe-interval=[Keep at least this long between two probes aimed at one host]:GAP:_default' \
'--send-mode=[How raw probes are placed on the wire]:MODE:(auto raw-socket ethernet)' \
'-e+[Send probes to routed targets from this interface, whatever the routing table says]:NAME:_default' \
'--send-interface=[Send probes to routed targets from this interface, whatever the routing table says]:NAME:_default' \
'--os-detection=[How far to go identifying the system behind each host]:LEVEL:(off passive active aggressive)' \
'--ttl=[Set the probes'\'' hop limit, rather than this host'\''s default]:HOPS:_default' \
'-g+[Send every probe from this source port]:PORT:_default' \
'--source-port=[Send every probe from this source port]:PORT:_default' \
'*-D+[Mingle the real probes with decoys from these addresses]:IP:_default' \
'*--decoy=[Mingle the real probes with decoys from these addresses]:IP:_default' \
'--mtu=[Fragment every crafted probe to this MTU, in bytes]:MTU:_default' \
'--data-length=[Append this many bytes of padding to each crafted probe]:LEN:_default' \
'--spoof-mac=[Send crafted frames from this hardware address]:MAC:_default' \
'--scanflags=[Set the TCP flags on every port probe by name or number]:FLAGS:_default' \
'*-x+[Addresses this run may not probe, whatever the targets say]:TARGET:_default' \
'*--exclude=[Addresses this run may not probe, whatever the targets say]:TARGET:_default' \
'*--exclude-file=[Read addresses this run may not probe from FILE, in the form \`-i\` reads targets in]:FILE:_default' \
'--profile=[Use a named profile from the engine'\''s settings file]:NAME:_default' \
'--min-risk=[The lowest grade of finding to draw]:GRADE:(info low medium high critical)' \
'*-o+[Write the report to FILE, in the format its extension names]:FILE:_files' \
'*--output=[Write the report to FILE, in the format its extension names]:FILE:_files' \
'*--output-as=[Write the report to FILE in the format you name\: \`--output-as json=out\`]:FORMAT=FILE:_default' \
'--output-all=[Write every format this build can produce, each named after BASE]:BASE:_files' \
'--presentation=[How to draw this run. Overrides the settings file for one invocation]:MODE:(pipe minimal fancy)' \
'--colour=[Whether to colour the output]:WHEN:(auto always never)' \
'--color=[Whether to colour the output]:WHEN:(auto always never)' \
'(-p --ports --top-ports)-F[Probe the hundred TCP ports most likely to be listening\: a quick pass, and \`--top-ports 100\` in one letter]' \
'--assume-up[Scan every target without checking first that anything is there]' \
'-A[Identify all this can without changing anything on the target\: \`-O\`, \`-d\` and \`--traceroute\` together]' \
'--aggressive[Identify all this can without changing anything on the target\: \`-O\`, \`-d\` and \`--traceroute\` together]' \
'(--service-detection)--no-service-detection[Report port states and no service detail]' \
'--tls-enum[Enumerate the TLS versions and cipher suites each TLS port accepts]' \
'--no-builtin[Leave out the built-in corpus, and run only what \`--load\` and \`--bundle\` name]' \
'--characterise[Characterise the filter in front of each host that answered]' \
'--characterize[Characterise the filter in front of each host that answered]' \
'--probe-print-ports[Probe printers'\'' raw-print ports, TCP 9100 to 9107, like any other port]' \
'--no-dampen[Spend the full probe budget on hosts that answer nothing at all]' \
'(--os-detection)*-O[Identify the system behind each host by probing it\: \`-O\` actively, \`-OO\` as thoroughly as this engine can]' \
'--traceroute[Measure the route to each host that answered]' \
'--badsum[Give every crafted TCP probe a deliberately wrong checksum]' \
'-n[Send no DNS traffic, and name hosts from the hosts file alone]' \
'--no-dns[Send no DNS traffic, and name hosts from the hosts file alone]' \
'--redact[Mask host and domain names, hardware addresses and IPv6 host parts in the output]' \
'--explain[Show the working behind everything\: \`--reason\`, \`--evidence\` and \`--remedy\` at once]' \
'--reason[Show which packet settled each port, and who sent a refusal]' \
'--risks[List every finding, not the summary the block draws]' \
'--remedy[Show what to do about each finding]' \
'--evidence[Show the bytes each finding was drawn from]' \
'--no-journal[Do not write down how far this scan gets]' \
'*-v[Show more detail. Repeat for more still]' \
'*--verbose[Show more detail. Repeat for more still]' \
'(-v --verbose)-q[Show nothing but errors and the hosts found]' \
'(-v --verbose)--quiet[Show nothing but errors and the hosts found]' \
'(--presentation --minimal --fancy)--pipe[Shorthand for \`--presentation pipe\`]' \
'(--presentation --fancy)--minimal[Shorthand for \`--presentation minimal\`]' \
'(--presentation)--fancy[Shorthand for \`--presentation fancy\`, the default, for a run whose settings file says otherwise]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::targets -- What to scan\: an address, a range, a CIDR block, a hostname, or `lan`:_default' \
&& ret=0
;;
(s)
_arguments "${_arguments_options[@]}" : \
'*-i+[Read targets from FILE as well, one or more to a line; \`-\` reads them from standard input]:FILE:_default' \
'*--input-file=[Read targets from FILE as well, one or more to a line; \`-\` reads them from standard input]:FILE:_default' \
'(--top-ports --top-ports-udp -F)-p+[Which ports to probe\: \`22,80,443\`, \`1-1024\`, \`u\:53,161\` for UDP, \`s\:2905\` for SCTP]:PORTS:_default' \
'(--top-ports --top-ports-udp -F)--ports=[Which ports to probe\: \`22,80,443\`, \`1-1024\`, \`u\:53,161\` for UDP, \`s\:2905\` for SCTP]:PORTS:_default' \
'(-p --ports)--top-ports=[Probe the N TCP ports most likely to be listening]:N:_default' \
'(-p --ports)--top-ports-udp=[Probe the N UDP ports most likely to be listening]:N:_default' \
'*--exclude-ports=[Ports to send nothing at all, on any target\: \`9100-9107\`, \`u\:161\`]:PORTS:_default' \
'-d+[How intrusive a detection the scan may run against what it identifies]::LEVEL:(off passive active-benign active-mutating exploit dos)' \
'--detect=[How intrusive a detection the scan may run against what it identifies]::LEVEL:(off passive active-benign active-mutating exploit dos)' \
'--service-detection=[How far to go to identify what is listening behind each open port]:LEVEL:(off banner probe thorough)' \
'--cve-catalogue=[Correlate against a vulnerability catalogue on disk, beside the one this build ships]:PATH:_files' \
'--cve-catalog=[Correlate against a vulnerability catalogue on disk, beside the one this build ships]:PATH:_files' \
'*--load=[A detection file, or a directory of them, to run alongside the built-in corpus. Repeatable]:PATH:_files' \
'--bundle=[A directory holding a signed detection bundle\: somebody else'\''s detections]:DIR:_files' \
'--trust-key=[The public key file a bundle must be signed by\: the \`.pub\` that \`detections keygen\` writes]:FILE:_files' \
'--tcp-technique=[Which TCP segment a probe carries, and so what its answers mean]:TECHNIQUE:(syn fin null xmas maimon ack window)' \
'*-s+[What kind of scan to run, by letter\: \`-sS\` for SYN, \`-sU\` for UDP, \`-sV\` for service detection]:LETTERS:_default' \
'*--scan-type=[What kind of scan to run, by letter\: \`-sS\` for SYN, \`-sU\` for UDP, \`-sV\` for service detection]:LETTERS:_default' \
'--sctp-technique=[Which SCTP probe carries the scan, for the ports named \`s\:\`]:TECHNIQUE:(init cookie-echo)' \
'--idle-scan=[Read the target'\''s TCP ports off a third party'\''s IP-ID counter]:ZOMBIE:_default' \
'--ip-protocols=[Ask each host which IP protocols its stack takes delivery of]:LIST:_default' \
'-T+[How gently to treat the network\: \`-T0\` gentlest to \`-T5\` fastest]:LEVEL:(trickle sparing gentle normal brisk hurried)' \
'--pace=[How gently to treat the network\: \`-T0\` gentlest to \`-T5\` fastest]:LEVEL:(trickle sparing gentle normal brisk hurried)' \
'--effort=[How hard the scan tries before it accepts silence as an answer]:LEVEL:(single fast balanced thorough)' \
'--max-attempts=[Replace the attempt budget outright, whatever --effort implies]:N:_default' \
'--timeout-scale=[Multiply how long the scan is willing to wait]:FACTOR:_default' \
'--max-probe-rate=[The fastest the scan may put probes on the wire, in probes per second]:PPS:_default' \
'--max-rate=[The fastest the scan may put probes on the wire, in probes per second]:PPS:_default' \
'--min-probe-rate=[The slowest the scan may fall to, in probes per second]:PPS:_default' \
'--min-rate=[The slowest the scan may fall to, in probes per second]:PPS:_default' \
'--host-timeout=[Give up on a host that is still answering after this long]:DURATION:_default' \
'--scan-timeout=[Give up on the whole scan after this long]:DURATION:_default' \
'--probe-interval=[Keep at least this long between any two probes the scan sends, whatever host each is aimed at]:GAP:_default' \
'--host-probe-interval=[Keep at least this long between two probes aimed at one host]:GAP:_default' \
'--send-mode=[How raw probes are placed on the wire]:MODE:(auto raw-socket ethernet)' \
'-e+[Send probes to routed targets from this interface, whatever the routing table says]:NAME:_default' \
'--send-interface=[Send probes to routed targets from this interface, whatever the routing table says]:NAME:_default' \
'--os-detection=[How far to go identifying the system behind each host]:LEVEL:(off passive active aggressive)' \
'--ttl=[Set the probes'\'' hop limit, rather than this host'\''s default]:HOPS:_default' \
'-g+[Send every probe from this source port]:PORT:_default' \
'--source-port=[Send every probe from this source port]:PORT:_default' \
'*-D+[Mingle the real probes with decoys from these addresses]:IP:_default' \
'*--decoy=[Mingle the real probes with decoys from these addresses]:IP:_default' \
'--mtu=[Fragment every crafted probe to this MTU, in bytes]:MTU:_default' \
'--data-length=[Append this many bytes of padding to each crafted probe]:LEN:_default' \
'--spoof-mac=[Send crafted frames from this hardware address]:MAC:_default' \
'--scanflags=[Set the TCP flags on every port probe by name or number]:FLAGS:_default' \
'*-x+[Addresses this run may not probe, whatever the targets say]:TARGET:_default' \
'*--exclude=[Addresses this run may not probe, whatever the targets say]:TARGET:_default' \
'*--exclude-file=[Read addresses this run may not probe from FILE, in the form \`-i\` reads targets in]:FILE:_default' \
'--profile=[Use a named profile from the engine'\''s settings file]:NAME:_default' \
'--min-risk=[The lowest grade of finding to draw]:GRADE:(info low medium high critical)' \
'*-o+[Write the report to FILE, in the format its extension names]:FILE:_files' \
'*--output=[Write the report to FILE, in the format its extension names]:FILE:_files' \
'*--output-as=[Write the report to FILE in the format you name\: \`--output-as json=out\`]:FORMAT=FILE:_default' \
'--output-all=[Write every format this build can produce, each named after BASE]:BASE:_files' \
'--presentation=[How to draw this run. Overrides the settings file for one invocation]:MODE:(pipe minimal fancy)' \
'--colour=[Whether to colour the output]:WHEN:(auto always never)' \
'--color=[Whether to colour the output]:WHEN:(auto always never)' \
'(-p --ports --top-ports)-F[Probe the hundred TCP ports most likely to be listening\: a quick pass, and \`--top-ports 100\` in one letter]' \
'--assume-up[Scan every target without checking first that anything is there]' \
'-A[Identify all this can without changing anything on the target\: \`-O\`, \`-d\` and \`--traceroute\` together]' \
'--aggressive[Identify all this can without changing anything on the target\: \`-O\`, \`-d\` and \`--traceroute\` together]' \
'(--service-detection)--no-service-detection[Report port states and no service detail]' \
'--tls-enum[Enumerate the TLS versions and cipher suites each TLS port accepts]' \
'--no-builtin[Leave out the built-in corpus, and run only what \`--load\` and \`--bundle\` name]' \
'--characterise[Characterise the filter in front of each host that answered]' \
'--characterize[Characterise the filter in front of each host that answered]' \
'--probe-print-ports[Probe printers'\'' raw-print ports, TCP 9100 to 9107, like any other port]' \
'--no-dampen[Spend the full probe budget on hosts that answer nothing at all]' \
'(--os-detection)*-O[Identify the system behind each host by probing it\: \`-O\` actively, \`-OO\` as thoroughly as this engine can]' \
'--traceroute[Measure the route to each host that answered]' \
'--badsum[Give every crafted TCP probe a deliberately wrong checksum]' \
'-n[Send no DNS traffic, and name hosts from the hosts file alone]' \
'--no-dns[Send no DNS traffic, and name hosts from the hosts file alone]' \
'--redact[Mask host and domain names, hardware addresses and IPv6 host parts in the output]' \
'--explain[Show the working behind everything\: \`--reason\`, \`--evidence\` and \`--remedy\` at once]' \
'--reason[Show which packet settled each port, and who sent a refusal]' \
'--risks[List every finding, not the summary the block draws]' \
'--remedy[Show what to do about each finding]' \
'--evidence[Show the bytes each finding was drawn from]' \
'--no-journal[Do not write down how far this scan gets]' \
'*-v[Show more detail. Repeat for more still]' \
'*--verbose[Show more detail. Repeat for more still]' \
'(-v --verbose)-q[Show nothing but errors and the hosts found]' \
'(-v --verbose)--quiet[Show nothing but errors and the hosts found]' \
'(--presentation --minimal --fancy)--pipe[Shorthand for \`--presentation pipe\`]' \
'(--presentation --fancy)--minimal[Shorthand for \`--presentation minimal\`]' \
'(--presentation)--fancy[Shorthand for \`--presentation fancy\`, the default, for a run whose settings file says otherwise]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::targets -- What to scan\: an address, a range, a CIDR block, a hostname, or `lan`:_default' \
&& ret=0
;;
(listen)
_arguments "${_arguments_options[@]}" : \
'--for=[Stop after this long, rather than waiting to be told]:DURATION:_default' \
'*-x+[Addresses this run may not probe, whatever the targets say]:TARGET:_default' \
'*--exclude=[Addresses this run may not probe, whatever the targets say]:TARGET:_default' \
'*--exclude-file=[Read addresses this run may not probe from FILE, in the form \`-i\` reads targets in]:FILE:_default' \
'--profile=[Use a named profile from the engine'\''s settings file]:NAME:_default' \
'--min-risk=[The lowest grade of finding to draw]:GRADE:(info low medium high critical)' \
'*-o+[Write the report to FILE, in the format its extension names]:FILE:_files' \
'*--output=[Write the report to FILE, in the format its extension names]:FILE:_files' \
'*--output-as=[Write the report to FILE in the format you name\: \`--output-as json=out\`]:FORMAT=FILE:_default' \
'--output-all=[Write every format this build can produce, each named after BASE]:BASE:_files' \
'--presentation=[How to draw this run. Overrides the settings file for one invocation]:MODE:(pipe minimal fancy)' \
'--colour=[Whether to colour the output]:WHEN:(auto always never)' \
'--color=[Whether to colour the output]:WHEN:(auto always never)' \
'--everything[Record every machine heard, not only the ones attached to these links]' \
'-n[Send no DNS traffic, and name hosts from the hosts file alone]' \
'--no-dns[Send no DNS traffic, and name hosts from the hosts file alone]' \
'--redact[Mask host and domain names, hardware addresses and IPv6 host parts in the output]' \
'--explain[Show the working behind everything\: \`--reason\`, \`--evidence\` and \`--remedy\` at once]' \
'--reason[Show which packet settled each port, and who sent a refusal]' \
'--risks[List every finding, not the summary the block draws]' \
'--remedy[Show what to do about each finding]' \
'--evidence[Show the bytes each finding was drawn from]' \
'--no-journal[Do not write down what this watch hears]' \
'*-v[Show more detail. Repeat for more still]' \
'*--verbose[Show more detail. Repeat for more still]' \
'(-v --verbose)-q[Show nothing but errors and the hosts found]' \
'(-v --verbose)--quiet[Show nothing but errors and the hosts found]' \
'(--presentation --minimal --fancy)--pipe[Shorthand for \`--presentation pipe\`]' \
'(--presentation --fancy)--minimal[Shorthand for \`--presentation minimal\`]' \
'(--presentation)--fancy[Shorthand for \`--presentation fancy\`, the default, for a run whose settings file says otherwise]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::links -- Which link to listen on\: an interface name, `%en0`, or `lan`:_default' \
&& ret=0
;;
(l)
_arguments "${_arguments_options[@]}" : \
'--for=[Stop after this long, rather than waiting to be told]:DURATION:_default' \
'*-x+[Addresses this run may not probe, whatever the targets say]:TARGET:_default' \
'*--exclude=[Addresses this run may not probe, whatever the targets say]:TARGET:_default' \
'*--exclude-file=[Read addresses this run may not probe from FILE, in the form \`-i\` reads targets in]:FILE:_default' \
'--profile=[Use a named profile from the engine'\''s settings file]:NAME:_default' \
'--min-risk=[The lowest grade of finding to draw]:GRADE:(info low medium high critical)' \
'*-o+[Write the report to FILE, in the format its extension names]:FILE:_files' \
'*--output=[Write the report to FILE, in the format its extension names]:FILE:_files' \
'*--output-as=[Write the report to FILE in the format you name\: \`--output-as json=out\`]:FORMAT=FILE:_default' \
'--output-all=[Write every format this build can produce, each named after BASE]:BASE:_files' \
'--presentation=[How to draw this run. Overrides the settings file for one invocation]:MODE:(pipe minimal fancy)' \
'--colour=[Whether to colour the output]:WHEN:(auto always never)' \
'--color=[Whether to colour the output]:WHEN:(auto always never)' \
'--everything[Record every machine heard, not only the ones attached to these links]' \
'-n[Send no DNS traffic, and name hosts from the hosts file alone]' \
'--no-dns[Send no DNS traffic, and name hosts from the hosts file alone]' \
'--redact[Mask host and domain names, hardware addresses and IPv6 host parts in the output]' \
'--explain[Show the working behind everything\: \`--reason\`, \`--evidence\` and \`--remedy\` at once]' \
'--reason[Show which packet settled each port, and who sent a refusal]' \
'--risks[List every finding, not the summary the block draws]' \
'--remedy[Show what to do about each finding]' \
'--evidence[Show the bytes each finding was drawn from]' \
'--no-journal[Do not write down what this watch hears]' \
'*-v[Show more detail. Repeat for more still]' \
'*--verbose[Show more detail. Repeat for more still]' \
'(-v --verbose)-q[Show nothing but errors and the hosts found]' \
'(-v --verbose)--quiet[Show nothing but errors and the hosts found]' \
'(--presentation --minimal --fancy)--pipe[Shorthand for \`--presentation pipe\`]' \
'(--presentation --fancy)--minimal[Shorthand for \`--presentation minimal\`]' \
'(--presentation)--fancy[Shorthand for \`--presentation fancy\`, the default, for a run whose settings file says otherwise]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::links -- Which link to listen on\: an interface name, `%en0`, or `lan`:_default' \
&& ret=0
;;
(resume)
_arguments "${_arguments_options[@]}" : \
'--for=[Stop a watch after this long, rather than waiting to be told]:DURATION:_default' \
'--max-probe-rate=[The fastest the scan may put probes on the wire, in probes per second]:PPS:_default' \
'--max-rate=[The fastest the scan may put probes on the wire, in probes per second]:PPS:_default' \
'--min-probe-rate=[The slowest the scan may fall to, in probes per second]:PPS:_default' \
'--min-rate=[The slowest the scan may fall to, in probes per second]:PPS:_default' \
'--host-timeout=[Give up on a host that is still answering after this long]:DURATION:_default' \
'--scan-timeout=[Give up on the whole scan after this long]:DURATION:_default' \
'--probe-interval=[Keep at least this long between any two probes the scan sends, whatever host each is aimed at]:GAP:_default' \
'--host-probe-interval=[Keep at least this long between two probes aimed at one host]:GAP:_default' \
'--min-risk=[The lowest grade of finding to draw]:GRADE:(info low medium high critical)' \
'*-o+[Write the report to FILE, in the format its extension names]:FILE:_files' \
'*--output=[Write the report to FILE, in the format its extension names]:FILE:_files' \
'*--output-as=[Write the report to FILE in the format you name\: \`--output-as json=out\`]:FORMAT=FILE:_default' \
'--output-all=[Write every format this build can produce, each named after BASE]:BASE:_files' \
'--presentation=[How to draw this run. Overrides the settings file for one invocation]:MODE:(pipe minimal fancy)' \
'--colour=[Whether to colour the output]:WHEN:(auto always never)' \
'--color=[Whether to colour the output]:WHEN:(auto always never)' \
'--take-over[Continue the record even though its lock names a process that has stopped checkpointing]' \
'-n[Send no DNS traffic, and name hosts from the hosts file alone]' \
'--no-dns[Send no DNS traffic, and name hosts from the hosts file alone]' \
'--redact[Mask host and domain names, hardware addresses and IPv6 host parts in the output]' \
'--explain[Show the working behind everything\: \`--reason\`, \`--evidence\` and \`--remedy\` at once]' \
'--reason[Show which packet settled each port, and who sent a refusal]' \
'--risks[List every finding, not the summary the block draws]' \
'--remedy[Show what to do about each finding]' \
'--evidence[Show the bytes each finding was drawn from]' \
'*-v[Show more detail. Repeat for more still]' \
'*--verbose[Show more detail. Repeat for more still]' \
'(-v --verbose)-q[Show nothing but errors and the hosts found]' \
'(-v --verbose)--quiet[Show nothing but errors and the hosts found]' \
'(--presentation --minimal --fancy)--pipe[Shorthand for \`--presentation pipe\`]' \
'(--presentation --fancy)--minimal[Shorthand for \`--presentation minimal\`]' \
'(--presentation)--fancy[Shorthand for \`--presentation fancy\`, the default, for a run whose settings file says otherwise]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':id -- The record to continue, as `zond journal` lists it\: its id, any prefix of it that names only one record, or `latest`:_default' \
&& ret=0
;;
(journal)
_arguments "${_arguments_options[@]}" : \
'(-a --all)-n+[How many rows to list at once]:COUNT:_default' \
'(-a --all)--limit=[How many rows to list at once]:COUNT:_default' \
'(-a --all)--page=[Which page of them, counting from one]:N:_default' \
'--presentation=[How to draw this run. Overrides the settings file for one invocation]:MODE:(pipe minimal fancy)' \
'--colour=[Whether to colour the output]:WHEN:(auto always never)' \
'--color=[Whether to colour the output]:WHEN:(auto always never)' \
'-a[List every row, however many there are]' \
'--all[List every row, however many there are]' \
'*-v[Show more detail. Repeat for more still]' \
'*--verbose[Show more detail. Repeat for more still]' \
'(-v --verbose)-q[Show nothing but errors and the hosts found]' \
'(-v --verbose)--quiet[Show nothing but errors and the hosts found]' \
'(--presentation --minimal --fancy)--pipe[Shorthand for \`--presentation pipe\`]' \
'(--presentation --fancy)--minimal[Shorthand for \`--presentation minimal\`]' \
'(--presentation)--fancy[Shorthand for \`--presentation fancy\`, the default, for a run whose settings file says otherwise]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_zond__subcmd__journal_commands" \
"*::: :->journal" \
&& ret=0

    case $state in
    (journal)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zond-journal-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
'(-a --all)-n+[How many rows to list at once]:COUNT:_default' \
'(-a --all)--limit=[How many rows to list at once]:COUNT:_default' \
'(-a --all)--page=[Which page of them, counting from one]:N:_default' \
'--presentation=[How to draw this run. Overrides the settings file for one invocation]:MODE:(pipe minimal fancy)' \
'--colour=[Whether to colour the output]:WHEN:(auto always never)' \
'--color=[Whether to colour the output]:WHEN:(auto always never)' \
'-a[List every row, however many there are]' \
'--all[List every row, however many there are]' \
'*-v[Show more detail. Repeat for more still]' \
'*--verbose[Show more detail. Repeat for more still]' \
'(-v --verbose)-q[Show nothing but errors and the hosts found]' \
'(-v --verbose)--quiet[Show nothing but errors and the hosts found]' \
'(--presentation --minimal --fancy)--pipe[Shorthand for \`--presentation pipe\`]' \
'(--presentation --fancy)--minimal[Shorthand for \`--presentation minimal\`]' \
'(--presentation)--fancy[Shorthand for \`--presentation fancy\`, the default, for a run whose settings file says otherwise]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(ls)
_arguments "${_arguments_options[@]}" : \
'(-a --all)-n+[How many rows to list at once]:COUNT:_default' \
'(-a --all)--limit=[How many rows to list at once]:COUNT:_default' \
'(-a --all)--page=[Which page of them, counting from one]:N:_default' \
'--presentation=[How to draw this run. Overrides the settings file for one invocation]:MODE:(pipe minimal fancy)' \
'--colour=[Whether to colour the output]:WHEN:(auto always never)' \
'--color=[Whether to colour the output]:WHEN:(auto always never)' \
'-a[List every row, however many there are]' \
'--all[List every row, however many there are]' \
'*-v[Show more detail. Repeat for more still]' \
'*--verbose[Show more detail. Repeat for more still]' \
'(-v --verbose)-q[Show nothing but errors and the hosts found]' \
'(-v --verbose)--quiet[Show nothing but errors and the hosts found]' \
'(--presentation --minimal --fancy)--pipe[Shorthand for \`--presentation pipe\`]' \
'(--presentation --fancy)--minimal[Shorthand for \`--presentation minimal\`]' \
'(--presentation)--fancy[Shorthand for \`--presentation fancy\`, the default, for a run whose settings file says otherwise]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" : \
'--presentation=[How to draw this run. Overrides the settings file for one invocation]:MODE:(pipe minimal fancy)' \
'--colour=[Whether to colour the output]:WHEN:(auto always never)' \
'--color=[Whether to colour the output]:WHEN:(auto always never)' \
'*-v[Show more detail. Repeat for more still]' \
'*--verbose[Show more detail. Repeat for more still]' \
'(-v --verbose)-q[Show nothing but errors and the hosts found]' \
'(-v --verbose)--quiet[Show nothing but errors and the hosts found]' \
'(--presentation --minimal --fancy)--pipe[Shorthand for \`--presentation pipe\`]' \
'(--presentation --fancy)--minimal[Shorthand for \`--presentation minimal\`]' \
'(--presentation)--fancy[Shorthand for \`--presentation fancy\`, the default, for a run whose settings file says otherwise]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':id -- Which one, as `zond journal` lists it\: its id, any prefix of it that names only one record, or `latest`:_default' \
&& ret=0
;;
(prune)
_arguments "${_arguments_options[@]}" : \
'--older-than=[Delete finished records older than this, as \`30d\`, \`12h\` or \`90m\`]:AGE:_default' \
'--presentation=[How to draw this run. Overrides the settings file for one invocation]:MODE:(pipe minimal fancy)' \
'--colour=[Whether to colour the output]:WHEN:(auto always never)' \
'--color=[Whether to colour the output]:WHEN:(auto always never)' \
'(--completed --older-than)--all[Delete every record, finished or not, including ones this build cannot read]' \
'--unreadable[Delete the records this build cannot read, such as ones a newer zond wrote. A link in the journal directory is never followed or removed]' \
'(--older-than)--completed[Delete every finished record, whatever its age]' \
'-n[Say what would go without deleting anything]' \
'--dry-run[Say what would go without deleting anything]' \
'*-v[Show more detail. Repeat for more still]' \
'*--verbose[Show more detail. Repeat for more still]' \
'(-v --verbose)-q[Show nothing but errors and the hosts found]' \
'(-v --verbose)--quiet[Show nothing but errors and the hosts found]' \
'(--presentation --minimal --fancy)--pipe[Shorthand for \`--presentation pipe\`]' \
'(--presentation --fancy)--minimal[Shorthand for \`--presentation minimal\`]' \
'(--presentation)--fancy[Shorthand for \`--presentation fancy\`, the default, for a run whose settings file says otherwise]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::ids -- Which to delete, as `zond journal` lists them:_default' \
&& ret=0
;;
(rm)
_arguments "${_arguments_options[@]}" : \
'--older-than=[Delete finished records older than this, as \`30d\`, \`12h\` or \`90m\`]:AGE:_default' \
'--presentation=[How to draw this run. Overrides the settings file for one invocation]:MODE:(pipe minimal fancy)' \
'--colour=[Whether to colour the output]:WHEN:(auto always never)' \
'--color=[Whether to colour the output]:WHEN:(auto always never)' \
'(--completed --older-than)--all[Delete every record, finished or not, including ones this build cannot read]' \
'--unreadable[Delete the records this build cannot read, such as ones a newer zond wrote. A link in the journal directory is never followed or removed]' \
'(--older-than)--completed[Delete every finished record, whatever its age]' \
'-n[Say what would go without deleting anything]' \
'--dry-run[Say what would go without deleting anything]' \
'*-v[Show more detail. Repeat for more still]' \
'*--verbose[Show more detail. Repeat for more still]' \
'(-v --verbose)-q[Show nothing but errors and the hosts found]' \
'(-v --verbose)--quiet[Show nothing but errors and the hosts found]' \
'(--presentation --minimal --fancy)--pipe[Shorthand for \`--presentation pipe\`]' \
'(--presentation --fancy)--minimal[Shorthand for \`--presentation minimal\`]' \
'(--presentation)--fancy[Shorthand for \`--presentation fancy\`, the default, for a run whose settings file says otherwise]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::ids -- Which to delete, as `zond journal` lists them:_default' \
&& ret=0
;;
        esac
    ;;
esac
;;
(j)
_arguments "${_arguments_options[@]}" : \
'(-a --all)-n+[How many rows to list at once]:COUNT:_default' \
'(-a --all)--limit=[How many rows to list at once]:COUNT:_default' \
'(-a --all)--page=[Which page of them, counting from one]:N:_default' \
'--presentation=[How to draw this run. Overrides the settings file for one invocation]:MODE:(pipe minimal fancy)' \
'--colour=[Whether to colour the output]:WHEN:(auto always never)' \
'--color=[Whether to colour the output]:WHEN:(auto always never)' \
'-a[List every row, however many there are]' \
'--all[List every row, however many there are]' \
'*-v[Show more detail. Repeat for more still]' \
'*--verbose[Show more detail. Repeat for more still]' \
'(-v --verbose)-q[Show nothing but errors and the hosts found]' \
'(-v --verbose)--quiet[Show nothing but errors and the hosts found]' \
'(--presentation --minimal --fancy)--pipe[Shorthand for \`--presentation pipe\`]' \
'(--presentation --fancy)--minimal[Shorthand for \`--presentation minimal\`]' \
'(--presentation)--fancy[Shorthand for \`--presentation fancy\`, the default, for a run whose settings file says otherwise]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_zond__subcmd__journal_commands" \
"*::: :->journal" \
&& ret=0

    case $state in
    (journal)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zond-journal-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
'(-a --all)-n+[How many rows to list at once]:COUNT:_default' \
'(-a --all)--limit=[How many rows to list at once]:COUNT:_default' \
'(-a --all)--page=[Which page of them, counting from one]:N:_default' \
'--presentation=[How to draw this run. Overrides the settings file for one invocation]:MODE:(pipe minimal fancy)' \
'--colour=[Whether to colour the output]:WHEN:(auto always never)' \
'--color=[Whether to colour the output]:WHEN:(auto always never)' \
'-a[List every row, however many there are]' \
'--all[List every row, however many there are]' \
'*-v[Show more detail. Repeat for more still]' \
'*--verbose[Show more detail. Repeat for more still]' \
'(-v --verbose)-q[Show nothing but errors and the hosts found]' \
'(-v --verbose)--quiet[Show nothing but errors and the hosts found]' \
'(--presentation --minimal --fancy)--pipe[Shorthand for \`--presentation pipe\`]' \
'(--presentation --fancy)--minimal[Shorthand for \`--presentation minimal\`]' \
'(--presentation)--fancy[Shorthand for \`--presentation fancy\`, the default, for a run whose settings file says otherwise]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(ls)
_arguments "${_arguments_options[@]}" : \
'(-a --all)-n+[How many rows to list at once]:COUNT:_default' \
'(-a --all)--limit=[How many rows to list at once]:COUNT:_default' \
'(-a --all)--page=[Which page of them, counting from one]:N:_default' \
'--presentation=[How to draw this run. Overrides the settings file for one invocation]:MODE:(pipe minimal fancy)' \
'--colour=[Whether to colour the output]:WHEN:(auto always never)' \
'--color=[Whether to colour the output]:WHEN:(auto always never)' \
'-a[List every row, however many there are]' \
'--all[List every row, however many there are]' \
'*-v[Show more detail. Repeat for more still]' \
'*--verbose[Show more detail. Repeat for more still]' \
'(-v --verbose)-q[Show nothing but errors and the hosts found]' \
'(-v --verbose)--quiet[Show nothing but errors and the hosts found]' \
'(--presentation --minimal --fancy)--pipe[Shorthand for \`--presentation pipe\`]' \
'(--presentation --fancy)--minimal[Shorthand for \`--presentation minimal\`]' \
'(--presentation)--fancy[Shorthand for \`--presentation fancy\`, the default, for a run whose settings file says otherwise]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" : \
'--presentation=[How to draw this run. Overrides the settings file for one invocation]:MODE:(pipe minimal fancy)' \
'--colour=[Whether to colour the output]:WHEN:(auto always never)' \
'--color=[Whether to colour the output]:WHEN:(auto always never)' \
'*-v[Show more detail. Repeat for more still]' \
'*--verbose[Show more detail. Repeat for more still]' \
'(-v --verbose)-q[Show nothing but errors and the hosts found]' \
'(-v --verbose)--quiet[Show nothing but errors and the hosts found]' \
'(--presentation --minimal --fancy)--pipe[Shorthand for \`--presentation pipe\`]' \
'(--presentation --fancy)--minimal[Shorthand for \`--presentation minimal\`]' \
'(--presentation)--fancy[Shorthand for \`--presentation fancy\`, the default, for a run whose settings file says otherwise]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':id -- Which one, as `zond journal` lists it\: its id, any prefix of it that names only one record, or `latest`:_default' \
&& ret=0
;;
(prune)
_arguments "${_arguments_options[@]}" : \
'--older-than=[Delete finished records older than this, as \`30d\`, \`12h\` or \`90m\`]:AGE:_default' \
'--presentation=[How to draw this run. Overrides the settings file for one invocation]:MODE:(pipe minimal fancy)' \
'--colour=[Whether to colour the output]:WHEN:(auto always never)' \
'--color=[Whether to colour the output]:WHEN:(auto always never)' \
'(--completed --older-than)--all[Delete every record, finished or not, including ones this build cannot read]' \
'--unreadable[Delete the records this build cannot read, such as ones a newer zond wrote. A link in the journal directory is never followed or removed]' \
'(--older-than)--completed[Delete every finished record, whatever its age]' \
'-n[Say what would go without deleting anything]' \
'--dry-run[Say what would go without deleting anything]' \
'*-v[Show more detail. Repeat for more still]' \
'*--verbose[Show more detail. Repeat for more still]' \
'(-v --verbose)-q[Show nothing but errors and the hosts found]' \
'(-v --verbose)--quiet[Show nothing but errors and the hosts found]' \
'(--presentation --minimal --fancy)--pipe[Shorthand for \`--presentation pipe\`]' \
'(--presentation --fancy)--minimal[Shorthand for \`--presentation minimal\`]' \
'(--presentation)--fancy[Shorthand for \`--presentation fancy\`, the default, for a run whose settings file says otherwise]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::ids -- Which to delete, as `zond journal` lists them:_default' \
&& ret=0
;;
(rm)
_arguments "${_arguments_options[@]}" : \
'--older-than=[Delete finished records older than this, as \`30d\`, \`12h\` or \`90m\`]:AGE:_default' \
'--presentation=[How to draw this run. Overrides the settings file for one invocation]:MODE:(pipe minimal fancy)' \
'--colour=[Whether to colour the output]:WHEN:(auto always never)' \
'--color=[Whether to colour the output]:WHEN:(auto always never)' \
'(--completed --older-than)--all[Delete every record, finished or not, including ones this build cannot read]' \
'--unreadable[Delete the records this build cannot read, such as ones a newer zond wrote. A link in the journal directory is never followed or removed]' \
'(--older-than)--completed[Delete every finished record, whatever its age]' \
'-n[Say what would go without deleting anything]' \
'--dry-run[Say what would go without deleting anything]' \
'*-v[Show more detail. Repeat for more still]' \
'*--verbose[Show more detail. Repeat for more still]' \
'(-v --verbose)-q[Show nothing but errors and the hosts found]' \
'(-v --verbose)--quiet[Show nothing but errors and the hosts found]' \
'(--presentation --minimal --fancy)--pipe[Shorthand for \`--presentation pipe\`]' \
'(--presentation --fancy)--minimal[Shorthand for \`--presentation minimal\`]' \
'(--presentation)--fancy[Shorthand for \`--presentation fancy\`, the default, for a run whose settings file says otherwise]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::ids -- Which to delete, as `zond journal` lists them:_default' \
&& ret=0
;;
        esac
    ;;
esac
;;
(diff)
_arguments "${_arguments_options[@]}" : \
'--identity=[What makes two records the same host]:HOW:(any hardware primary)' \
'*-o+[Write the comparison to FILE instead of printing it]:FILE:_files' \
'*--output=[Write the comparison to FILE instead of printing it]:FILE:_files' \
'--presentation=[How to draw this run. Overrides the settings file for one invocation]:MODE:(pipe minimal fancy)' \
'--colour=[Whether to colour the output]:WHEN:(auto always never)' \
'--color=[Whether to colour the output]:WHEN:(auto always never)' \
'--redact[Mask host and domain names, hardware addresses and IPv6 host parts in the output]' \
'*-v[Show more detail. Repeat for more still]' \
'*--verbose[Show more detail. Repeat for more still]' \
'(-v --verbose)-q[Show nothing but errors and the hosts found]' \
'(-v --verbose)--quiet[Show nothing but errors and the hosts found]' \
'(--presentation --minimal --fancy)--pipe[Shorthand for \`--presentation pipe\`]' \
'(--presentation --fancy)--minimal[Shorthand for \`--presentation minimal\`]' \
'(--presentation)--fancy[Shorthand for \`--presentation fancy\`, the default, for a run whose settings file says otherwise]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':before -- The earlier scan\: a file, or a record as `zond journal` lists them:_default' \
':after -- The later scan, named the same way:_default' \
&& ret=0
;;
(merge)
_arguments "${_arguments_options[@]}" : \
'--identity=[What makes two records the same host]:HOW:(any hardware primary)' \
'--min-risk=[The lowest grade of finding to draw]:GRADE:(info low medium high critical)' \
'*-o+[Write the report to FILE, in the format its extension names]:FILE:_files' \
'*--output=[Write the report to FILE, in the format its extension names]:FILE:_files' \
'*--output-as=[Write the report to FILE in the format you name\: \`--output-as json=out\`]:FORMAT=FILE:_default' \
'--output-all=[Write every format this build can produce, each named after BASE]:BASE:_files' \
'--presentation=[How to draw this run. Overrides the settings file for one invocation]:MODE:(pipe minimal fancy)' \
'--colour=[Whether to colour the output]:WHEN:(auto always never)' \
'--color=[Whether to colour the output]:WHEN:(auto always never)' \
'--redact[Mask host and domain names, hardware addresses and IPv6 host parts in the output]' \
'--explain[Show the working behind everything\: \`--reason\`, \`--evidence\` and \`--remedy\` at once]' \
'--reason[Show which packet settled each port, and who sent a refusal]' \
'--risks[List every finding, not the summary the block draws]' \
'--remedy[Show what to do about each finding]' \
'--evidence[Show the bytes each finding was drawn from]' \
'*-v[Show more detail. Repeat for more still]' \
'*--verbose[Show more detail. Repeat for more still]' \
'(-v --verbose)-q[Show nothing but errors and the hosts found]' \
'(-v --verbose)--quiet[Show nothing but errors and the hosts found]' \
'(--presentation --minimal --fancy)--pipe[Shorthand for \`--presentation pipe\`]' \
'(--presentation --fancy)--minimal[Shorthand for \`--presentation minimal\`]' \
'(--presentation)--fancy[Shorthand for \`--presentation fancy\`, the default, for a run whose settings file says otherwise]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::sources -- The scans to fold together\: files, or records as `zond journal` lists them:_default' \
&& ret=0
;;
(read)
_arguments "${_arguments_options[@]}" : \
'--min-risk=[The lowest grade of finding to draw]:GRADE:(info low medium high critical)' \
'*-o+[Write the report to FILE, in the format its extension names]:FILE:_files' \
'*--output=[Write the report to FILE, in the format its extension names]:FILE:_files' \
'*--output-as=[Write the report to FILE in the format you name\: \`--output-as json=out\`]:FORMAT=FILE:_default' \
'--output-all=[Write every format this build can produce, each named after BASE]:BASE:_files' \
'--presentation=[How to draw this run. Overrides the settings file for one invocation]:MODE:(pipe minimal fancy)' \
'--colour=[Whether to colour the output]:WHEN:(auto always never)' \
'--color=[Whether to colour the output]:WHEN:(auto always never)' \
'--redact[Mask host and domain names, hardware addresses and IPv6 host parts in the output]' \
'--explain[Show the working behind everything\: \`--reason\`, \`--evidence\` and \`--remedy\` at once]' \
'--reason[Show which packet settled each port, and who sent a refusal]' \
'--risks[List every finding, not the summary the block draws]' \
'--remedy[Show what to do about each finding]' \
'--evidence[Show the bytes each finding was drawn from]' \
'*-v[Show more detail. Repeat for more still]' \
'*--verbose[Show more detail. Repeat for more still]' \
'(-v --verbose)-q[Show nothing but errors and the hosts found]' \
'(-v --verbose)--quiet[Show nothing but errors and the hosts found]' \
'(--presentation --minimal --fancy)--pipe[Shorthand for \`--presentation pipe\`]' \
'(--presentation --fancy)--minimal[Shorthand for \`--presentation minimal\`]' \
'(--presentation)--fancy[Shorthand for \`--presentation fancy\`, the default, for a run whose settings file says otherwise]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':source -- The scan to print\: a file, or a record as `zond journal` lists them:_default' \
&& ret=0
;;
(detections)
_arguments "${_arguments_options[@]}" : \
'*--load=[A detection file, or a directory of them, to run alongside the built-in corpus. Repeatable]:PATH:_files' \
'--bundle=[A directory holding a signed detection bundle\: somebody else'\''s detections]:DIR:_files' \
'--trust-key=[The public key file a bundle must be signed by\: the \`.pub\` that \`detections keygen\` writes]:FILE:_files' \
'--search=[List only detections whose id or title contains this text]:TEXT:_default' \
'*--class=[List only detections of this class. Repeatable]:CLASS:((derived\:"Sends nothing of its own; recombines ports the scan already settled"
passive\:"Reads bytes the scan already gathered"
active-benign\:"Speaks to the service, and asks it for nothing it would not tell anyone"
active-mutating\:"Changes something on the target"
exploit\:"Triggers a weakness to confirm it"
dos\:"May take the service down"))' \
'*--tier=[List only detections the named tier runs. Repeatable]:TIER:((flow\:"A declarative sequence of probes and matches, carrying no code"
compute\:"A sandboxed module, reaching the network through granted verbs alone"
host\:"A correlation across the ports of one host"))' \
'--service=[List only detections whose gate names this service]:NAME:_default' \
'--port=[List only detections whose gate names this port]:PORT:_default' \
'--sort=[The order to list them in]:FIELD:((id\:"The id, alphabetically\: the column the eye runs down"
class\:"The class, loudest first"
tier\:"The tier, in the order the tiers run"
title\:"The title, alphabetically"))' \
'(-a --all)-n+[How many rows to list at once]:COUNT:_default' \
'(-a --all)--limit=[How many rows to list at once]:COUNT:_default' \
'(-a --all)--page=[Which page of them, counting from one]:N:_default' \
'--presentation=[How to draw this run. Overrides the settings file for one invocation]:MODE:(pipe minimal fancy)' \
'--colour=[Whether to colour the output]:WHEN:(auto always never)' \
'--color=[Whether to colour the output]:WHEN:(auto always never)' \
'--no-builtin[Leave out the built-in corpus, and run only what \`--load\` and \`--bundle\` name]' \
'--reverse[Reverse whatever order \`--sort\` asked for]' \
'-a[List every row, however many there are]' \
'--all[List every row, however many there are]' \
'*-v[Show more detail. Repeat for more still]' \
'*--verbose[Show more detail. Repeat for more still]' \
'(-v --verbose)-q[Show nothing but errors and the hosts found]' \
'(-v --verbose)--quiet[Show nothing but errors and the hosts found]' \
'(--presentation --minimal --fancy)--pipe[Shorthand for \`--presentation pipe\`]' \
'(--presentation --fancy)--minimal[Shorthand for \`--presentation minimal\`]' \
'(--presentation)--fancy[Shorthand for \`--presentation fancy\`, the default, for a run whose settings file says otherwise]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_zond__subcmd__detections_commands" \
"*::: :->detections" \
&& ret=0

    case $state in
    (detections)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zond-detections-command-$line[1]:"
        case $line[1] in
            (test)
_arguments "${_arguments_options[@]}" : \
'*--load=[A detection file, or a directory of them, to run alongside the built-in corpus. Repeatable]:PATH:_files' \
'--bundle=[A directory holding a signed detection bundle\: somebody else'\''s detections]:DIR:_files' \
'--trust-key=[The public key file a bundle must be signed by\: the \`.pub\` that \`detections keygen\` writes]:FILE:_files' \
'-d+[The most intrusive class to run, \`exploit\` by default so a check that triggers a weakness to confirm it actually fires. \`zond scan\` defaults to \`passive\`; a test is an explicit act against a chosen target, so it opens the ceiling instead of making you raise it]:LEVEL:(off passive active-benign active-mutating exploit dos)' \
'--detect=[The most intrusive class to run, \`exploit\` by default so a check that triggers a weakness to confirm it actually fires. \`zond scan\` defaults to \`passive\`; a test is an explicit act against a chosen target, so it opens the ceiling instead of making you raise it]:LEVEL:(off passive active-benign active-mutating exploit dos)' \
'--presentation=[How to draw this run. Overrides the settings file for one invocation]:MODE:(pipe minimal fancy)' \
'--colour=[Whether to colour the output]:WHEN:(auto always never)' \
'--color=[Whether to colour the output]:WHEN:(auto always never)' \
'--no-builtin[Leave out the built-in corpus, and run only what \`--load\` and \`--bundle\` name]' \
'*-v[Show more detail. Repeat for more still]' \
'*--verbose[Show more detail. Repeat for more still]' \
'(-v --verbose)-q[Show nothing but errors and the hosts found]' \
'(-v --verbose)--quiet[Show nothing but errors and the hosts found]' \
'(--presentation --minimal --fancy)--pipe[Shorthand for \`--presentation pipe\`]' \
'(--presentation --fancy)--minimal[Shorthand for \`--presentation minimal\`]' \
'(--presentation)--fancy[Shorthand for \`--presentation fancy\`, the default, for a run whose settings file says otherwise]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':target -- The endpoint to run the detections against, as `host\:port`. An IPv6 address is bracketed, `\[\:\:1\]\:443`. The host may be a name, which is resolved:_default' \
&& ret=0
;;
(replay)
_arguments "${_arguments_options[@]}" : \
'--only=[Replay only the detection with this id, rather than every one recorded]:ID:_default' \
'--presentation=[How to draw this run. Overrides the settings file for one invocation]:MODE:(pipe minimal fancy)' \
'--colour=[Whether to colour the output]:WHEN:(auto always never)' \
'--color=[Whether to colour the output]:WHEN:(auto always never)' \
'*-v[Show more detail. Repeat for more still]' \
'*--verbose[Show more detail. Repeat for more still]' \
'(-v --verbose)-q[Show nothing but errors and the hosts found]' \
'(-v --verbose)--quiet[Show nothing but errors and the hosts found]' \
'(--presentation --minimal --fancy)--pipe[Shorthand for \`--presentation pipe\`]' \
'(--presentation --fancy)--minimal[Shorthand for \`--presentation minimal\`]' \
'(--presentation)--fancy[Shorthand for \`--presentation fancy\`, the default, for a run whose settings file says otherwise]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':scan -- The scan whose detections to replay\: a record as `zond journal` lists them, which may be shortened to any prefix that names only one or given as `latest`, or a path to a journal directory:_default' \
&& ret=0
;;
(keygen)
_arguments "${_arguments_options[@]}" : \
'--presentation=[How to draw this run. Overrides the settings file for one invocation]:MODE:(pipe minimal fancy)' \
'--colour=[Whether to colour the output]:WHEN:(auto always never)' \
'--color=[Whether to colour the output]:WHEN:(auto always never)' \
'*-v[Show more detail. Repeat for more still]' \
'*--verbose[Show more detail. Repeat for more still]' \
'(-v --verbose)-q[Show nothing but errors and the hosts found]' \
'(-v --verbose)--quiet[Show nothing but errors and the hosts found]' \
'(--presentation --minimal --fancy)--pipe[Shorthand for \`--presentation pipe\`]' \
'(--presentation --fancy)--minimal[Shorthand for \`--presentation minimal\`]' \
'(--presentation)--fancy[Shorthand for \`--presentation fancy\`, the default, for a run whose settings file says otherwise]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':path -- Where to write the key pair:_files' \
&& ret=0
;;
(sign)
_arguments "${_arguments_options[@]}" : \
'--out=[Where to write the bundle]:DIR:_files' \
'--key=[The private key to sign with, as \`keygen\` wrote it]:PATH:_files' \
'--name=[What the bundle calls itself, which a report prints beside its findings]:NAME:_default' \
'--bundle-version=[The version of the set, so a recipient can tell two deliveries apart]:VERSION:_default' \
'--presentation=[How to draw this run. Overrides the settings file for one invocation]:MODE:(pipe minimal fancy)' \
'--colour=[Whether to colour the output]:WHEN:(auto always never)' \
'--color=[Whether to colour the output]:WHEN:(auto always never)' \
'*-v[Show more detail. Repeat for more still]' \
'*--verbose[Show more detail. Repeat for more still]' \
'(-v --verbose)-q[Show nothing but errors and the hosts found]' \
'(-v --verbose)--quiet[Show nothing but errors and the hosts found]' \
'(--presentation --minimal --fancy)--pipe[Shorthand for \`--presentation pipe\`]' \
'(--presentation --fancy)--minimal[Shorthand for \`--presentation minimal\`]' \
'(--presentation)--fancy[Shorthand for \`--presentation fancy\`, the default, for a run whose settings file says otherwise]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':directory -- The directory of detections to sign:_files' \
&& ret=0
;;
        esac
    ;;
esac
;;
(update)
_arguments "${_arguments_options[@]}" : \
'--presentation=[How to draw this run. Overrides the settings file for one invocation]:MODE:(pipe minimal fancy)' \
'--colour=[Whether to colour the output]:WHEN:(auto always never)' \
'--color=[Whether to colour the output]:WHEN:(auto always never)' \
'*-v[Show more detail. Repeat for more still]' \
'*--verbose[Show more detail. Repeat for more still]' \
'(-v --verbose)-q[Show nothing but errors and the hosts found]' \
'(-v --verbose)--quiet[Show nothing but errors and the hosts found]' \
'(--presentation --minimal --fancy)--pipe[Shorthand for \`--presentation pipe\`]' \
'(--presentation --fancy)--minimal[Shorthand for \`--presentation minimal\`]' \
'(--presentation)--fancy[Shorthand for \`--presentation fancy\`, the default, for a run whose settings file says otherwise]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(completions)
_arguments "${_arguments_options[@]}" : \
'--presentation=[How to draw this run. Overrides the settings file for one invocation]:MODE:(pipe minimal fancy)' \
'--colour=[Whether to colour the output]:WHEN:(auto always never)' \
'--color=[Whether to colour the output]:WHEN:(auto always never)' \
'*-v[Show more detail. Repeat for more still]' \
'*--verbose[Show more detail. Repeat for more still]' \
'(-v --verbose)-q[Show nothing but errors and the hosts found]' \
'(-v --verbose)--quiet[Show nothing but errors and the hosts found]' \
'(--presentation --minimal --fancy)--pipe[Shorthand for \`--presentation pipe\`]' \
'(--presentation --fancy)--minimal[Shorthand for \`--presentation minimal\`]' \
'(--presentation)--fancy[Shorthand for \`--presentation fancy\`, the default, for a run whose settings file says otherwise]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':shell -- The shell to complete in:(bash elvish fish powershell zsh)' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
'--presentation=[How to draw this run. Overrides the settings file for one invocation]:MODE:(pipe minimal fancy)' \
'--colour=[Whether to colour the output]:WHEN:(auto always never)' \
'--color=[Whether to colour the output]:WHEN:(auto always never)' \
'*-v[Show more detail. Repeat for more still]' \
'*--verbose[Show more detail. Repeat for more still]' \
'(-v --verbose)-q[Show nothing but errors and the hosts found]' \
'(-v --verbose)--quiet[Show nothing but errors and the hosts found]' \
'(--presentation --minimal --fancy)--pipe[Shorthand for \`--presentation pipe\`]' \
'(--presentation --fancy)--minimal[Shorthand for \`--presentation minimal\`]' \
'(--presentation)--fancy[Shorthand for \`--presentation fancy\`, the default, for a run whose settings file says otherwise]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::topic -- A command, as `zond help journal prune`, or a topic, as `zond help targets`. Nothing lists the commands and the topics:_default' \
&& ret=0
;;
(__generate)
_arguments "${_arguments_options[@]}" : \
'--presentation=[How to draw this run. Overrides the settings file for one invocation]:MODE:(pipe minimal fancy)' \
'--colour=[Whether to colour the output]:WHEN:(auto always never)' \
'--color=[Whether to colour the output]:WHEN:(auto always never)' \
'*-v[Show more detail. Repeat for more still]' \
'*--verbose[Show more detail. Repeat for more still]' \
'(-v --verbose)-q[Show nothing but errors and the hosts found]' \
'(-v --verbose)--quiet[Show nothing but errors and the hosts found]' \
'(--presentation --minimal --fancy)--pipe[Shorthand for \`--presentation pipe\`]' \
'(--presentation --fancy)--minimal[Shorthand for \`--presentation minimal\`]' \
'(--presentation)--fancy[Shorthand for \`--presentation fancy\`, the default, for a run whose settings file says otherwise]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':directory -- Where to write them\: `man/` and `completions/` inside it:_files' \
&& ret=0
;;
        esac
    ;;
esac
}

(( $+functions[_zond_commands] )) ||
_zond_commands() {
    local commands; commands=(
'discover:Find which hosts on a network are alive' \
'd:Find which hosts on a network are alive' \
'scan:Find which ports are open on a network'\''s hosts' \
's:Find which ports are open on a network'\''s hosts' \
'listen:Watch a link and record what it carries. Sends nothing' \
'l:Watch a link and record what it carries. Sends nothing' \
'resume:Continue a scan, a sweep or a watch that stopped' \
'journal:Look at the scans this machine has a record of' \
'j:Look at the scans this machine has a record of' \
'diff:Show what changed between two scans' \
'merge:Fold several scans into one report' \
'read:Print a scan that is already written down' \
'detections:Check the detections a scan would run, without scanning' \
'update:Download the latest vulnerability data into the cache' \
'completions:Print a script that completes zond'\''s commands and flags in a shell' \
'help:Show the help for a command, or one of the topics below' \
'__generate:Write the man pages and the shell completions into a directory, for a package to install' \
    )
    _describe -t commands 'zond commands' commands "$@"
}
(( $+functions[_zond__subcmd____generate_commands] )) ||
_zond__subcmd____generate_commands() {
    local commands; commands=()
    _describe -t commands 'zond __generate commands' commands "$@"
}
(( $+functions[_zond__subcmd__completions_commands] )) ||
_zond__subcmd__completions_commands() {
    local commands; commands=()
    _describe -t commands 'zond completions commands' commands "$@"
}
(( $+functions[_zond__subcmd__detections_commands] )) ||
_zond__subcmd__detections_commands() {
    local commands; commands=(
'test:Run detections against one endpoint and print what they found' \
'replay:Re-run a recorded scan'\''s compute detections offline, to see what each saw' \
'keygen:Make a signing key, for publishing detections others will run' \
'sign:Sign a directory of detections as a bundle others can load' \
    )
    _describe -t commands 'zond detections commands' commands "$@"
}
(( $+functions[_zond__subcmd__detections__subcmd__keygen_commands] )) ||
_zond__subcmd__detections__subcmd__keygen_commands() {
    local commands; commands=()
    _describe -t commands 'zond detections keygen commands' commands "$@"
}
(( $+functions[_zond__subcmd__detections__subcmd__replay_commands] )) ||
_zond__subcmd__detections__subcmd__replay_commands() {
    local commands; commands=()
    _describe -t commands 'zond detections replay commands' commands "$@"
}
(( $+functions[_zond__subcmd__detections__subcmd__sign_commands] )) ||
_zond__subcmd__detections__subcmd__sign_commands() {
    local commands; commands=()
    _describe -t commands 'zond detections sign commands' commands "$@"
}
(( $+functions[_zond__subcmd__detections__subcmd__test_commands] )) ||
_zond__subcmd__detections__subcmd__test_commands() {
    local commands; commands=()
    _describe -t commands 'zond detections test commands' commands "$@"
}
(( $+functions[_zond__subcmd__diff_commands] )) ||
_zond__subcmd__diff_commands() {
    local commands; commands=()
    _describe -t commands 'zond diff commands' commands "$@"
}
(( $+functions[_zond__subcmd__discover_commands] )) ||
_zond__subcmd__discover_commands() {
    local commands; commands=()
    _describe -t commands 'zond discover commands' commands "$@"
}
(( $+functions[_zond__subcmd__help_commands] )) ||
_zond__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'zond help commands' commands "$@"
}
(( $+functions[_zond__subcmd__journal_commands] )) ||
_zond__subcmd__journal_commands() {
    local commands; commands=(
'list:List every scan this machine has a record of, newest first' \
'ls:List every scan this machine has a record of, newest first' \
'show:Show one record'\''s own details\: where it is, how far it got, what is holding it' \
'prune:Delete records\: the ones named, or the ones no longer worth keeping' \
'rm:Delete records\: the ones named, or the ones no longer worth keeping' \
    )
    _describe -t commands 'zond journal commands' commands "$@"
}
(( $+functions[_zond__subcmd__journal__subcmd__list_commands] )) ||
_zond__subcmd__journal__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'zond journal list commands' commands "$@"
}
(( $+functions[_zond__subcmd__journal__subcmd__prune_commands] )) ||
_zond__subcmd__journal__subcmd__prune_commands() {
    local commands; commands=()
    _describe -t commands 'zond journal prune commands' commands "$@"
}
(( $+functions[_zond__subcmd__journal__subcmd__show_commands] )) ||
_zond__subcmd__journal__subcmd__show_commands() {
    local commands; commands=()
    _describe -t commands 'zond journal show commands' commands "$@"
}
(( $+functions[_zond__subcmd__listen_commands] )) ||
_zond__subcmd__listen_commands() {
    local commands; commands=()
    _describe -t commands 'zond listen commands' commands "$@"
}
(( $+functions[_zond__subcmd__merge_commands] )) ||
_zond__subcmd__merge_commands() {
    local commands; commands=()
    _describe -t commands 'zond merge commands' commands "$@"
}
(( $+functions[_zond__subcmd__read_commands] )) ||
_zond__subcmd__read_commands() {
    local commands; commands=()
    _describe -t commands 'zond read commands' commands "$@"
}
(( $+functions[_zond__subcmd__resume_commands] )) ||
_zond__subcmd__resume_commands() {
    local commands; commands=()
    _describe -t commands 'zond resume commands' commands "$@"
}
(( $+functions[_zond__subcmd__scan_commands] )) ||
_zond__subcmd__scan_commands() {
    local commands; commands=()
    _describe -t commands 'zond scan commands' commands "$@"
}
(( $+functions[_zond__subcmd__update_commands] )) ||
_zond__subcmd__update_commands() {
    local commands; commands=()
    _describe -t commands 'zond update commands' commands "$@"
}

if [ "$funcstack[1]" = "_zond" ]; then
    _zond "$@"
else
    compdef _zond zond
fi
