Skip to content

Commit

Permalink
cli: write message on command success
Browse files Browse the repository at this point in the history
  • Loading branch information
malt3 committed Jan 2, 2024
1 parent e21be9b commit e434bf8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions cli/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion cli/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion cli/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit e434bf8

Please sign in to comment.