frostfs-node/cmd/neofs-cli/internal/commonflags/session.go
Evgenii Stratonikov 9efec21d34 [#1074] neofs-cli: Move session preparation to modules/session package
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-06-06 13:54:29 +03:00

14 lines
279 B
Go

package commonflags
import "github.com/spf13/cobra"
const SessionToken = "session"
// InitSession initializes session parameter for cmd.
func InitSession(cmd *cobra.Command) {
cmd.Flags().String(
SessionToken,
"",
"path to a JSON-encoded container session token",
)
}