From e434bf8ff3bdde4332c4eef8891c772f611bf5a8 Mon Sep 17 00:00:00 2001 From: Malte Poll <1780588+malt3@users.noreply.github.com> Date: Thu, 21 Dec 2023 15:56:06 +0100 Subject: [PATCH] cli: write message on command success --- cli/generate.go | 2 ++ cli/set.go | 2 +- cli/verify.go | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cli/generate.go b/cli/generate.go index 707f2a5ac9..3e62c12862 100644 --- a/cli/generate.go +++ b/cli/generate.go @@ -82,6 +82,8 @@ func runGenerate(cmd *cobra.Command, args []string) error { return fmt.Errorf("failed to write manifest: %w", err) } + fmt.Fprintf(cmd.OutOrStdout(), "Generated manifest %s\n", flags.manifestPath) + return nil } diff --git a/cli/set.go b/cli/set.go index 61778ce494..10c4f8e2aa 100644 --- a/cli/set.go +++ b/cli/set.go @@ -83,7 +83,7 @@ func runSet(cmd *cobra.Command, args []string) error { return fmt.Errorf("failed to set manifest: %w", err) } - logger.Info("Manifest set successfully") + fmt.Fprintln(cmd.OutOrStdout(), "Manifest set successfully") filelist := map[string][]byte{ coordRootPEMFilename: resp.CACert, diff --git a/cli/verify.go b/cli/verify.go index 4b07f99552..98889b4727 100644 --- a/cli/verify.go +++ b/cli/verify.go @@ -75,7 +75,7 @@ func runVerify(cmd *cobra.Command, args []string) error { return fmt.Errorf("writing filelist: %w", err) } - logger.Info("Successfully verified coordinator") + fmt.Fprintln(cmd.OutOrStdout(), "Successfully verified coordinator") return nil }