From 0f146dda35d4a055415299d330ec2e4f0171d1cf Mon Sep 17 00:00:00 2001 From: Adesh Deshmukh Date: Wed, 17 Jun 2026 07:53:26 +0530 Subject: [PATCH] fix: import-url success message now respects mainArtifact flag Signed-off-by: Adesh Deshmukh --- cmd/importURL.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cmd/importURL.go b/cmd/importURL.go index 69c32e8e..8244d38c 100644 --- a/cmd/importURL.go +++ b/cmd/importURL.go @@ -117,13 +117,17 @@ func NewImportURLCommand(globalClientOpts *connectors.ClientOptions) *cobra.Comm } } - // Try downloading the artifcat + // Try downloading the artifact msg, err := mc.DownloadArtifact(f, mainArtifact, secret) if err != nil { fmt.Printf("Got error when invoking Microcks client importing Artifact: %s", err) os.Exit(1) } - fmt.Printf("Microcks has discovered '%s'\n", msg) + action := "discovered" + if !mainArtifact { + action = "completed" + } + fmt.Printf("Microcks has %s '%s'\n", action, msg) } }, }