- I wrote a scripts to copy and generate all commands missing in iris from fig repo: https://github.com/withfig/autocomplete - Add a new script to generate commands docs about which commands currently are inside commands folder 377d4aac663590e504fe39a92eb4dac4cbd333b2 - Add more icons e64d4e70a1db61e62053460a882e093bd6373ab1
41 lines
1.9 KiB
Go
41 lines
1.9 KiB
Go
package sys
|
|
|
|
import (
|
|
"github.com/versenilvis/iris/commands/core"
|
|
)
|
|
|
|
func init() {
|
|
core.Register(&core.Spec{
|
|
Name: "dog",
|
|
Description: "Human-readable host names, nameservers, types, or classes",
|
|
Subcommands: []core.Subcommand{
|
|
{Name: "A", Description: "Query Domain A Record"},
|
|
{Name: "MX", Description: "Query Domain MX Record"},
|
|
{Name: "CNAME", Description: "Query Domain CNAME Record"},
|
|
{Name: "TXT", Description: "Query Domain TXT Record"},
|
|
{Name: "NS", Description: "Query NS Record"},
|
|
{Name: "SOA", Description: "Query SOA Record"},
|
|
{Name: "TTL", Description: "Query TTL Record"},
|
|
{Name: "ANY +noall +answer", Description: "Query ALL DNS Records"},
|
|
},
|
|
Options: []core.Option{
|
|
{Name: "-q", Description: "Host name or IP address to query"},
|
|
{Name: "-t", Description: "Type of the DNS record being queried (A, MX, NS...)"},
|
|
{Name: "-n", Description: "Address of the nameserver to send packets to"},
|
|
{Name: "-class", Description: "Network class of the DNS record being queried (IN, CH, HS)"},
|
|
{Name: "--edns", Description: "Whether to OPT in to EDNS (disable, hide, show)"},
|
|
{Name: "--txid", Description: "Set the transaction ID to a specific value"},
|
|
{Name: "-Z", Description: "Set uncommon protocol-level tweaks"},
|
|
{Name: "-U", Description: "Use the DNS protocol over UDP"},
|
|
{Name: "-T", Description: "Use the DNS protocol over TCP"},
|
|
{Name: "-S", Description: "Use the DNS-over-TLS protocol"},
|
|
{Name: "-H", Description: "Use the DNS-over-HTTPS protocol"},
|
|
{Name: "-1", Description: "Short mode: display nothing but the first result"},
|
|
{Name: "-J", Description: "Display the output as JSON"},
|
|
{Name: "--color", Description: "When to colourise the output (always, automatic, never)"},
|
|
{Name: "--seconds", Description: "Do not format durations, display them as seconds"},
|
|
{Name: "--time", Description: "Print how long the response took to arrive"},
|
|
},
|
|
})
|
|
}
|