frostfs-node/cmd/neofs-cli/internal/commonflags/session.go
Anton Nikiforov 74d2f2c8d3 [#1854] cli: Unify help messages
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
2022-10-12 09:53:11 +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",
)
}