Skip to content

Commit

Permalink
Don't glob import the enum variants
Browse files Browse the repository at this point in the history
Makes it very difficult to jump to a specific reference to
`FhSubcommands` if there's only the one glob import.
  • Loading branch information
cole-h committed Oct 16, 2023
1 parent e8d6865 commit c88b19d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::io::IsTerminal;
use clap::Parser;

use crate::cli::{
cmd::{CommandExecute, FhSubcommands::*},
cmd::{CommandExecute, FhSubcommands},
Cli,
};

Expand All @@ -29,13 +29,13 @@ async fn main() -> color_eyre::Result<std::process::ExitCode> {
cli.instrumentation.setup().await?;

match cli.subcommand {
Add(add) => add.execute().await,
Init(init) => init.execute().await,
List(list) => list.execute().await,
Search(search) => search.execute().await,
Completion(completion) => completion.execute().await,
Convert(convert) => convert.execute().await,
Login(login) => login.execute().await,
Status(status) => status.execute().await,
FhSubcommands::Add(add) => add.execute().await,
FhSubcommands::Init(init) => init.execute().await,
FhSubcommands::List(list) => list.execute().await,
FhSubcommands::Search(search) => search.execute().await,
FhSubcommands::Completion(completion) => completion.execute().await,
FhSubcommands::Convert(convert) => convert.execute().await,
FhSubcommands::Login(login) => login.execute().await,
FhSubcommands::Status(status) => status.execute().await,
}
}

0 comments on commit c88b19d

Please sign in to comment.