From a19af20f278379c0d1647f5288c9387ee8b08729 Mon Sep 17 00:00:00 2001 From: "Mikael Knutsson (mikn)" Date: Sun, 8 Jun 2025 09:50:27 +0200 Subject: [PATCH 1/2] feat: make registry URL override:able --- src/commands/auth.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/commands/auth.rs b/src/commands/auth.rs index 190e25c..c78428a 100644 --- a/src/commands/auth.rs +++ b/src/commands/auth.rs @@ -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")] + pub registry: String, +} impl Docker { pub fn execute(self, base: CommandBase) -> Result<()> { @@ -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()) From 36e6c7488005f9bda8c242604fda0d7cf0899053 Mon Sep 17 00:00:00 2001 From: "Mikael Knutsson (mikn)" Date: Mon, 23 Jun 2025 11:42:32 +0200 Subject: [PATCH 2/2] fix: hide --registry from help output --- src/commands/auth.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/auth.rs b/src/commands/auth.rs index c78428a..b9d0962 100644 --- a/src/commands/auth.rs +++ b/src/commands/auth.rs @@ -115,7 +115,7 @@ impl Login { #[derive(Parser, Debug)] pub struct Docker { /// Docker registry URL - #[arg(long, default_value = "oci.se-ume.mltt.art")] + #[arg(long, default_value = "oci.se-ume.mltt.art", hide = true)] pub registry: String, }