context

package
v0.0.0-...-28a77dd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = cli.Command{
	Name:                   "context",
	Usage:                  "Shows current context.",
	Action:                 context,
	UseShortOptionHandling: true,
	Subcommands: []cli.Command{
		{
			Name:                   "set",
			Aliases:                []string{"use"},
			Usage:                  "Set current context.",
			ArgsUsage:              "context",
			Action:                 set,
			UseShortOptionHandling: true,
		},
		{
			Name:                   "delete",
			Usage:                  "Delete context.",
			ArgsUsage:              "context...",
			Action:                 _delete,
			UseShortOptionHandling: true,
			Hidden:                 true,
		},
		{
			Name:                   "add",
			Aliases:                []string{"new"},
			Usage:                  "Add new context.",
			ArgsUsage:              "context --user user --cluster cluster [-u]",
			Action:                 add,
			UseShortOptionHandling: true,
			Hidden:                 true,
			Flags: []cli.Flag{
				cli.BoolFlag{
					Name:  "use, u",
					Usage: "Switch to new context.",
				},
				cli.StringFlag{
					Name:  "user",
					Usage: "User",
				},
				cli.StringFlag{
					Name:     "cluster",
					Required: true,
					Usage:    "Cluster",
				},
			},
		},
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL