Code cleanup

Fix some minor issues detected by automated code inspection tools.
This commit is contained in:
Anthony Oteri
2023-09-18 14:37:10 -04:00
parent d450bccf9a
commit 6f44b77a6d
6 changed files with 16 additions and 28 deletions
+1 -11
View File
@@ -72,23 +72,13 @@ impl From<LogLevel> for log::LevelFilter {
}
}
#[derive(Debug, Args)]
pub struct TagsArgs {
/// The image name.
#[arg(
long,
num_args = 0..=1
)]
pub(crate) name: String,
}
#[derive(Debug, Subcommand)]
pub enum Commands {
/// Fetch the list of available repositories from the catalog.
Catalog,
/// Fetch the list of tags for a given image.
Tags(TagsArgs),
Tags { name: String },
/// Perform a simple API Version check towards the configured registry
/// endpoint.