Skip to content

Commit

Permalink
chore(wash-lib)!: Remove deprecated RegistryPingCommand
Browse files Browse the repository at this point in the history
Signed-off-by: Joonas Bergius <joonas@cosmonic.com>
  • Loading branch information
joonas committed May 15, 2024
1 parent c5b3ad0 commit 63afb6b
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions crates/wash-lib/src/cli/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ pub enum RegistryCommand {
/// Push an artifact to an OCI compliant registry
#[clap(name = "push")]
Push(RegistryPushCommand),
/// Ping (test url) to see if the OCI url has an artifact
#[clap(name = "ping")]
Ping(RegistryPingCommand),
}

#[derive(Parser, Debug, Clone)]
Expand Down Expand Up @@ -95,17 +92,3 @@ pub struct RegistryPushCommand {
#[clap(flatten)]
pub opts: AuthOpts,
}

#[derive(Parser, Debug, Clone)]
pub struct RegistryPingCommand {
/// URL of artifact
#[clap(name = "url")]
pub url: String,

/// Registry of artifact. This is only needed if the URL is not a full (OCI) artifact URL (ie, missing the registry fragment)
#[clap(short = 'r', long = "registry", env = "WASH_REG_URL")]
pub registry: Option<String>,

#[clap(flatten)]
pub opts: AuthOpts,
}

0 comments on commit 63afb6b

Please sign in to comment.