You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: cmd/credential_process.go
+15-4Lines changed: 15 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ package cmd
19
19
import (
20
20
"encoding/json"
21
21
"fmt"
22
+
"strings"
22
23
"time"
23
24
24
25
"github.com/sirupsen/logrus"
@@ -38,6 +39,7 @@ import (
38
39
funcinit() {
39
40
CredentialProcessCmd.PersistentFlags().BoolVarP(&generate, "generate", "g", false, "generate ~/.aws/config with credential process config")
40
41
CredentialProcessCmd.PersistentFlags().StringVarP(&destinationConfig, "output", "o", getDefaultAwsConfigFile(), "output file for AWS config")
42
+
CredentialProcessCmd.PersistentFlags().BoolVarP(&prettyPrint, "pretty", "p", false, "when combined with --generate/-g, use 'account_name-role_name' format for generated profiles instead of arn")
41
43
rootCmd.AddCommand(CredentialProcessCmd)
42
44
}
43
45
@@ -49,7 +51,7 @@ var CredentialProcessCmd = &cobra.Command{
0 commit comments