mirror of
https://github.com/NLnetLabs/dnst.git
synced 2026-08-26 09:32:33 +02:00
Re-order dnst commands alphabetically. (#54)
* Re-order dnst commands alphabetically. * Also re-order the match block alphabetically.
This commit is contained in:
+9
-9
@@ -45,6 +45,14 @@ pub enum Command {
|
||||
#[command(name = "keygen", verbatim_doc_comment)]
|
||||
Keygen(self::keygen::Keygen),
|
||||
|
||||
/// Generate a DS RR from the DNSKEYS in keyfile
|
||||
///
|
||||
/// The following file will be created for each key:
|
||||
/// `K<name>+<alg>+<id>.ds`. The base name `K<name>+<alg>+<id>`
|
||||
/// will be printed to stdout.
|
||||
#[command(name = "key2ds")]
|
||||
Key2ds(key2ds::Key2ds),
|
||||
|
||||
/// Print the NSEC3 hash of a given domain name
|
||||
#[command(name = "nsec3-hash")]
|
||||
Nsec3Hash(self::nsec3hash::Nsec3Hash),
|
||||
@@ -57,14 +65,6 @@ pub enum Command {
|
||||
#[command(name = "notify")]
|
||||
Notify(self::notify::Notify),
|
||||
|
||||
/// Generate a DS RR from the DNSKEYS in keyfile
|
||||
///
|
||||
/// The following file will be created for each key:
|
||||
/// `K<name>+<alg>+<id>.ds`. The base name `K<name>+<alg>+<id>`
|
||||
/// will be printed to stdout.
|
||||
#[command(name = "key2ds")]
|
||||
Key2ds(key2ds::Key2ds),
|
||||
|
||||
/// Send an UPDATE packet
|
||||
#[command(name = "update")]
|
||||
Update(self::update::Update),
|
||||
@@ -83,9 +83,9 @@ pub enum Command {
|
||||
impl Command {
|
||||
pub fn execute(self, env: impl Env) -> Result<(), Error> {
|
||||
match self {
|
||||
Self::Key2ds(key2ds) => key2ds.execute(env),
|
||||
Self::Keygen(keygen) => keygen.execute(env),
|
||||
Self::Nsec3Hash(nsec3hash) => nsec3hash.execute(env),
|
||||
Self::Key2ds(key2ds) => key2ds.execute(env),
|
||||
Self::Notify(notify) => notify.execute(env),
|
||||
Self::Update(update) => update.execute(env),
|
||||
Self::Help(help) => help.execute(),
|
||||
|
||||
Reference in New Issue
Block a user