mirror of
https://github.com/anthonyoteri/dredge.git
synced 2026-06-05 15:26:53 -04:00
Code cleanup
Fix some minor issues detected by automated code inspection tools.
This commit is contained in:
+1
-11
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user