Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/commands/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ impl Login {
}

#[derive(Parser, Debug)]
pub struct Docker {}
pub struct Docker {
/// Docker registry URL
#[arg(long, default_value = "oci.se-ume.mltt.art", hide = true)]
pub registry: String,
}

impl Docker {
pub fn execute(self, base: CommandBase) -> Result<()> {
Expand All @@ -128,7 +132,7 @@ impl Docker {

let mut command = Command::new("docker")
.arg("login")
.arg("oci.se-ume.mltt.art")
.arg(&self.registry)
.arg("--username=x")
.arg("--password-stdin")
.stdin(Stdio::piped())
Expand Down
Loading