diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a1d6d481..3627e5f1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,6 @@ -Before submitting a pul request, I'd encourage you to test it yourself. +Before submitting a pull request, I'd encourage you to test it yourself. -To do so, you need to run the plugin indirectly or directly- +To do so, you need to run the plugin indirectly or directly. **Indirect** Install the plugin locally and run it via helm: diff --git a/cmd/upgrade.go b/cmd/upgrade.go index 75281af4..1e4ba3f1 100644 --- a/cmd/upgrade.go +++ b/cmd/upgrade.go @@ -181,7 +181,7 @@ func newChartCommand() *cobra.Command { diff.threeWayMerge = enabled if enabled { - fmt.Println("Enabled three way merge via the envvar") + fmt.Fprintf(os.Stderr, "Enabled three way merge via the envvar\n") } } @@ -190,7 +190,7 @@ func newChartCommand() *cobra.Command { diff.normalizeManifests = enabled if enabled { - fmt.Println("Enabled normalize manifests via the envvar") + fmt.Fprintf(os.Stderr, "Enabled normalize manifests via the envvar\n") } } @@ -284,11 +284,11 @@ func (d *diffCmd) runHelm3() error { var newInstall bool if err != nil && strings.Contains(err.Error(), "release: not found") { if d.isAllowUnreleased() { - fmt.Printf("********************\n\n\tRelease was not present in Helm. Diff will show entire contents as new.\n\n********************\n") + fmt.Fprintf(os.Stderr, "********************\n\n\tRelease was not present in Helm. Diff will show entire contents as new.\n\n********************\n") newInstall = true err = nil } else { - fmt.Printf("********************\n\n\tRelease was not present in Helm. Include the `--allow-unreleased` to perform diff without exiting in error.\n\n********************\n") + fmt.Fprintf(os.Stderr, "********************\n\n\tRelease was not present in Helm. Include the `--allow-unreleased` to perform diff without exiting in error.\n\n********************\n") return err } }