Explorar el Código

redundant Add method

Mohammed Nafees hace 4 años
padre
commit
128c3226ce
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  1. 2 2
      cli/cmd/root.go
  2. 1 1
      cli/cmd/version.go

+ 2 - 2
cli/cmd/root.go

@@ -47,9 +47,9 @@ func Execute() {
 					if constraint.Check(latestRelease) {
 						color.New(color.FgYellow).Fprint(os.Stderr, "A new version of the porter CLI is available. Run the following to update: ")
 						if runtime.GOOS == "darwin" {
-							color.New(color.FgYellow).Add(color.Bold).Fprintln(os.Stderr, "brew install porter-dev/porter/porter")
+							color.New(color.FgYellow, color.Bold).Fprintln(os.Stderr, "brew install porter-dev/porter/porter")
 						} else {
-							color.New(color.FgYellow).Add(color.Bold).Fprintln(os.Stderr, "/bin/bash -c \"$(curl -fsSL https://install.porter.run)\"")
+							color.New(color.FgYellow, color.Bold).Fprintln(os.Stderr, "/bin/bash -c \"$(curl -fsSL https://install.porter.run)\"")
 						}
 						color.New(color.FgYellow).Fprintln(os.Stderr, "View CLI installation and upgrade docs at https://docs.porter.run/cli/installation\n")
 					}

+ 1 - 1
cli/cmd/version.go

@@ -7,7 +7,7 @@ import (
 )
 
 // Version will be linked by an ldflag during build
-var Version string = "dev"
+var Version string = "v0.1"
 
 var versionCmd = &cobra.Command{
 	Use:     "version",