Skip to content

Commit

Permalink
refactor: 🧑‍💻 Rename structure to avoid ambiguity
Browse files Browse the repository at this point in the history
  • Loading branch information
pvshvp-oss committed Apr 8, 2024
1 parent 3c98621 commit 6c7d9e9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion paxy-cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ mod cli_template {
)]
pub struct CliTemplate {
#[command(flatten)]
pub global_arguments: ui::cli_template::GlobalArguments<clap_verbosity_flag::InfoLevel>,
pub global_arguments: ui::cli_template::GlobalArgs<clap_verbosity_flag::InfoLevel>,

#[command(subcommand)]
pub entity: Option<EntitySubcommand>,
Expand Down
2 changes: 1 addition & 1 deletion paxy-gui/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ mod gui_cli_template {
#[command(version, author, about, args_conflicts_with_subcommands = true)]
pub struct CliTemplate {
#[clap(flatten)]
pub global_args: ui::cli_template::GlobalArguments<clap_verbosity_flag::InfoLevel>,
pub global_args: ui::cli_template::GlobalArgs<clap_verbosity_flag::InfoLevel>,
}

impl ui::GlobalArguments for CliTemplate {
Expand Down
2 changes: 1 addition & 1 deletion paxy/src/ui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ use crate::app::{self, config, logging};
pub mod cli_template {
#[derive(Clone, Debug, Args)]
#[command(next_display_order = usize::MAX - 100)]
pub struct GlobalArguments<L>
pub struct GlobalArgs<L>
where
L: clap_verbosity_flag::LogLevel,
{
Expand Down

0 comments on commit 6c7d9e9

Please sign in to comment.