Skip to content

Commit

Permalink
correct a typo, revert changes from before
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Dec 1, 2024
1 parent 2f17ded commit dbefed6
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/opt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ pub fn get_rattler_build_version() -> &'static str {
env!("CARGO_PKG_VERSION")
}

/// The main application.
#[allow(missing_docs)]
#[derive(Parser)]
#[clap(version = crate_version!())]
pub struct App {
Expand Down Expand Up @@ -494,25 +494,21 @@ pub struct UploadOpts {
pub common: CommonOpts,
}

/// The server type to upload to.
/// Server type.
#[derive(Clone, Debug, PartialEq, Parser)]
#[allow(missing_docs)]
pub enum ServerType {
/// A Quetz server
Quetz(QuetzOpts),
/// An Artifactory server
Artifactory(ArtifactoryOpts),
/// A prefix.dev server
Prefix(PrefixOpts),
/// An anaconda.org server
Anaconda(AnacondaOpts),
/// A conda-forge server
#[clap(hide = true)]
CondaForge(CondaForgeOpts),
}

#[derive(Clone, Debug, PartialEq, Parser)]
/// Upload to a Quetz server.
/// Authentication is used from the keychain / auth-file.
#[derive(Clone, Debug, PartialEq, Parser)]
pub struct QuetzOpts {
/// The URL to your Quetz server
#[arg(short, long, env = "QUETZ_SERVER_URL")]
Expand Down

0 comments on commit dbefed6

Please sign in to comment.