4
0

dog.zsh 1.3 KB

1234567891011121314151617181920212223242526
  1. #compdef dog
  2. __dog() {
  3. _arguments \
  4. "(- 1 *)"{-v,--version}"[Show version of dog]" \
  5. "(- 1 *)"{-\?,--help}"[Show list of command-line options]" \
  6. {-q,--query}"[Host name or domain name to query]::_hosts" \
  7. {-t,--type}"[Type of the DNS record being queried]:(record type):(A AAAA CAA CNAME HINFO MX NS PTR SOA SRV TXT)" \
  8. {-n,--nameserver}"[Address of the nameserver to send packets to]::_hosts;" \
  9. --class"[Network class of the DNS record being queried]:(network class):(IN CH HS)" \
  10. --edns"[Whether to OPT in to EDNS]:(edns setting):(disable hide show)" \
  11. --txid"[Set the transaction ID to a specific value]" \
  12. -Z"[Configure uncommon protocol-level tweaks]:(protocol tweak):(aa ad bufsize= cd)" \
  13. {-U,--udp}"[Use the DNS protocol over UDP]" \
  14. {-T,--tcp}"[Use the DNS protocol over TCP]" \
  15. {-S,--tls}"[Use the DNS-over-TLS protocol]" \
  16. {-H,--https}"[Use the DNS-over-HTTPS protocol]" \
  17. {-1,--short}"[Display nothing but the finst result]" \
  18. {-J,--json}"[Display the output as JSON]" \
  19. {--color,--colour}"[When to use terminal colours]:(setting):(always automatic never)" \
  20. --seconds"[Do not format durations, display them as seconds]" \
  21. --time"[Print how long the response took to arrive"] \
  22. '*:filename:_hosts'
  23. }
  24. __dog