4
0

dog.fish 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Meta options
  2. complete -c dog -s 'v' -l 'version' -d "Show version of dog"
  3. complete -c dog -s '?' -l 'help' -d "Show list of command-line options"
  4. # Query options
  5. complete -c dog -x -a "(__fish_print_hostnames) A AAAA CAA CNAME HINFO MX NS PTR SOA SRV TXT IN CH HS"
  6. complete -c dog -s 'q' -l 'query' -d "Host name or domain name to query" -x -a "(__fish_print_hostnames)"
  7. complete -c dog -s 't' -l 'type' -d "Type of the DNS record being queried" -x -a "A AAAA CAA CNAME HINFO MX NS PTR SOA SRV TXT"
  8. complete -c dog -s 'n' -l 'nameserver' -d "Address of the nameserver to send packets to" -x -a "(__fish_print_hostnames)"
  9. complete -c dog -l 'class' -d "Network class of the DNS record being queried" -x -a "IN CH HS"
  10. # Sending options
  11. complete -c dog -l 'edns' -d "Whether to OPT in to EDNS" -x -a "
  12. disable\t'Do not send an OPT query'
  13. hide\t'Send an OPT query, but hide the result'
  14. show\t'Send an OPT query, and show the result'
  15. "
  16. complete -c dog -l 'txid' -d "Set the transaction ID to a specific value" -x
  17. complete -c dog -s 'Z' -d "Configure uncommon protocol-level tweaks" -x -a "
  18. aa\t'Set the AA (Authoritative Answers) query bit'
  19. ad\t'Set the AD (Authentic Data) query bit'
  20. bufsize=\t'Set the UDP payload size'
  21. cd\t'Set the CD (Checking Disabled) query bit'
  22. "
  23. # Protocol options
  24. complete -c dog -s 'U' -l 'udp' -d "Use the DNS protocol over UDP"
  25. complete -c dog -s 'T' -l 'tcp' -d "Use the DNS protocol over TCP"
  26. complete -c dog -s 'S' -l 'tls' -d "Use the DNS-over-TLS protocol"
  27. complete -c dog -s 'H' -l 'https' -d "Use the DNS-over-HTTPS protocol"
  28. # Output options
  29. complete -c dog -s '1' -l 'short' -d "Display nothing but the first result"
  30. complete -c dog -s 'J' -l 'json' -d "Display the output as JSON"
  31. complete -c dog -l 'color' -d "When to colorise the output" -x -a "
  32. always\t'Always use colors'
  33. automatic\t'Use colors when printing to a terminal'
  34. never\t'Never use colors'
  35. "
  36. complete -c dog -l 'colour' -d "When to colourise the output" -x -a "
  37. always\t'Always use colours'
  38. automatic\t'Use colours when printing to a terminal'
  39. never\t'Never use colours'
  40. "
  41. complete -c dog -l 'seconds' -d "Do not format durations, display them as seconds"
  42. complete -c dog -l 'time' -d "Print how long the response took to arrive"