forked from TrueCloudLab/frostfs-node
[#1381] neofs-cli: Move JSON and verbose printing to a common package
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
c57114def3
commit
71d823f192
7 changed files with 57 additions and 39 deletions
|
@ -1128,9 +1128,9 @@ func getBearerToken(cmd *cobra.Command, flagname string) (*bearer.Token, error)
|
|||
return nil, fmt.Errorf("can't decode bearer token: %w", err)
|
||||
}
|
||||
|
||||
printVerbose("Using binary encoded bearer token")
|
||||
common.PrintVerbose("Using binary encoded bearer token")
|
||||
} else {
|
||||
printVerbose("Using JSON encoded bearer token")
|
||||
common.PrintVerbose("Using JSON encoded bearer token")
|
||||
}
|
||||
|
||||
return &tok, nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue