[#390] frostfs-cli: Pass bearer token to Tree srv

* Add --bearer flag for "tree" subcommand

Signed-off-by: Airat Arifullin a.arifullin@yadro.com
This commit is contained in:
Airat Arifullin 2023-06-05 18:54:59 +03:00
parent a770b89fd8
commit 189a367ef2
5 changed files with 11 additions and 4 deletions

View file

@ -32,6 +32,8 @@ const (
pathAttributeFlagKey = "pattr"
latestOnlyFlagKey = "latest"
bearerFlagKey = "bearer"
)
func initCTID(cmd *cobra.Command) {
@ -42,4 +44,6 @@ func initCTID(cmd *cobra.Command) {
ff.String(treeIDFlagKey, "", "Tree ID")
_ = cmd.MarkFlagRequired(treeIDFlagKey)
ff.StringP(bearerFlagKey, "", "", "Path to bearer token")
}