From 2420a41bb7e7786e4f4578e2b92d4930ec2d54cf Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Sun, 20 Nov 2022 00:24:19 -0500 Subject: [PATCH] Added helpful message to show secrets are being injected --- cli/packages/cmd/root.go | 2 +- cli/packages/cmd/run.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/packages/cmd/root.go b/cli/packages/cmd/root.go index 7d00d240f5..0c6d31aa6c 100644 --- a/cli/packages/cmd/root.go +++ b/cli/packages/cmd/root.go @@ -30,5 +30,5 @@ func Execute() { func init() { rootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") rootCmd.PersistentFlags().BoolVarP(&debugLogging, "debug", "d", false, "Enable verbose logging") - rootCmd.PersistentFlags().StringVar(&util.INFISICAL_URL, "domain", "https://api.infisical.com", "Point the CLI to your own backend") + rootCmd.PersistentFlags().StringVar(&util.INFISICAL_URL, "domain", "http://localhost:4000", "Point the CLI to your own backend") } diff --git a/cli/packages/cmd/run.go b/cli/packages/cmd/run.go index 5ed998db16..89dda01623 100644 --- a/cli/packages/cmd/run.go +++ b/cli/packages/cmd/run.go @@ -94,6 +94,7 @@ func init() { // Credit: inspired by AWS Valut func execCmd(command string, args []string, envs []models.SingleEnvironmentVariable) error { + log.Infof("\x1b[%dm%s\x1b[0m", 32, "\u2713 Injected Infisical secrets into your application process successfully") log.Debugln("Secrets to inject:", envs) log.Debugf("executing command: %s %s \n", command, strings.Join(args, " ")) cmd := exec.Command(command, args...)