Explorar o código

add message to porter run command

Alexander Belanger %!s(int64=5) %!d(string=hai) anos
pai
achega
25d1ba9819
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      cli/cmd/run.go

+ 3 - 1
cli/cmd/run.go

@@ -4,7 +4,9 @@ import (
 	"context"
 	"fmt"
 	"os"
+	"strings"
 
+	"github.com/fatih/color"
 	"github.com/porter-dev/porter/cli/cmd/api"
 	"github.com/porter-dev/porter/cli/cmd/utils"
 	"github.com/spf13/cobra"
@@ -52,7 +54,7 @@ func init() {
 }
 
 func run(_ *api.AuthCheckResponse, client *api.Client, args []string) error {
-	fmt.Println("ARGS ARE", args)
+	color.New(color.FgGreen).Println("Running", strings.Join(args[1:], " "), "for release", args[0])
 
 	podNames, err := getPods(client, namespace, args[0])