Skip to content

Commit

Permalink
Usage info
Browse files Browse the repository at this point in the history
  • Loading branch information
razvvan committed Aug 10, 2020
1 parent 836ecd5 commit 0fbd152
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ import (
"github.com/spf13/cobra"
)

const profilePrefix = "qi-"
const (
profilePrefix = "qi-"
colorReset = "\033[0m"
colorGreen = "\033[32m"
colorYellow = "\033[33m"
)

func main() {
rootCmd := &cobra.Command{
Expand All @@ -28,6 +33,11 @@ func main() {
if err != nil {
handleErr(err)
}

fmt.Println(colorGreen, " Success!", colorReset)
fmt.Println(colorYellow, " Start using your new profile:")
fmt.Println()
fmt.Println(colorReset, " $ export AWS_PROFILE="+profilePrefix+env+"-mfa\n", colorReset)
},
}

Expand Down

0 comments on commit 0fbd152

Please sign in to comment.