forked from TrueCloudLab/frostfs-node
9efec21d34
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
14 lines
279 B
Go
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",
|
|
)
|
|
}
|