Skip to content

Commit 70d2169

Browse files
author
JojiiOfficial
committed
allow viewing config from keyring
1 parent 49e6f2d commit 70d2169

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

commands/Config.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,13 @@ func ConfigUse(cData *CommandData, target string, values []string) {
8282

8383
// ConfigView view config
8484
func ConfigView(cData *CommandData) {
85+
if len(cData.Config.User.SessionToken) == 0 && cData.NoRedaction {
86+
s, err := cData.Config.GetToken()
87+
if err == nil {
88+
cData.Config.User.SessionToken = s
89+
}
90+
}
91+
8592
if !cData.OutputJSON {
8693
// Print human output
8794
fmt.Println(cData.Config.View(!cData.NoRedaction))

0 commit comments

Comments
 (0)