1use argh::{ArgsInfo, FromArgs};
6
7#[derive(ArgsInfo, FromArgs, Clone, Debug, PartialEq)]
8#[argh(subcommand, name = "dns")]
9pub struct Dns {
11 #[argh(subcommand)]
12 pub dns_cmd: DnsEnum,
13}
14
15#[derive(ArgsInfo, FromArgs, Clone, Debug, PartialEq)]
16#[argh(subcommand)]
17pub enum DnsEnum {
18 Lookup(Lookup),
19}
20
21#[derive(Clone, Debug, ArgsInfo, FromArgs, PartialEq)]
22#[argh(subcommand, name = "lookup")]
23pub struct Lookup {
25 #[argh(positional)]
26 pub hostname: String,
27 #[argh(option, default = "true")]
28 pub ipv4: bool,
30 #[argh(option, default = "true")]
31 pub ipv6: bool,
33 #[argh(option, default = "true")]
34 pub sort: bool,
36}