fix: Use stdin/out defined in command (#3199)

This commit is contained in:
Mathias Fredriksson
2022-07-26 17:23:32 +03:00
committed by GitHub
parent 9fe260d5ea
commit 159137dc10
8 changed files with 14 additions and 21 deletions

View File

@ -47,7 +47,7 @@ func templateEdit() *cobra.Command {
if err != nil {
return xerrors.Errorf("update template metadata: %w", err)
}
_, _ = fmt.Printf("Updated template metadata at %s!\n", cliui.Styles.DateTimeStamp.Render(time.Now().Format(time.Stamp)))
_, _ = fmt.Fprintf(cmd.OutOrStdout(), "Updated template metadata at %s!\n", cliui.Styles.DateTimeStamp.Render(time.Now().Format(time.Stamp)))
return nil
},
}