2022-05-30 13:43:02 +00:00
|
|
|
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,
|
|
|
|
"",
|
2022-10-11 14:02:03 +00:00
|
|
|
"Path to a JSON-encoded container session token",
|
2022-05-30 13:43:02 +00:00
|
|
|
)
|
|
|
|
}
|