Documentation
¶
Index ¶
Constants ¶
View Source
const IdRegexString = `^[a-zA-Z]+(?:-*[0-9a-zA-Z]+)*$`
Variables ¶
View Source
var ClearCmd = &cobra.Command{ Use: "clear", Aliases: []string{"cl", "c"}, Args: cobra.NoArgs, Short: "[DEPRECATED] Delete all storage entries", Long: `Delete all storage entries. This is an alias for 'forget --all'. Note that the storage is shared between all terminal sessions.`, Deprecated: "use 'bookmark clear' instead.", Run: bookmark.ClearCmd.Run, }
View Source
var ForgetCmd = &cobra.Command{ Use: "forget [<name> ...]", Aliases: []string{"f"}, Args: cobra.ArbitraryArgs, Short: "[DEPRECATED] Delete a storage entry", Long: `Delete a storage entry. Either one or more storage keys or the '--all' flag must be specified. If storage keys are specified, the corresponding storage entries will be deleted. Missing entries are ignored. If the '--all' flag is set, all storage entries will be deleted. Note that the storage is shared between all terminal sessions.`, Deprecated: "use 'bookmark forget' instead.", Run: bookmark.ForgetCmd.Run, }
View Source
var IdRegex = regexp.MustCompile(IdRegexString)
View Source
var LoadCmd = &cobra.Command{ Use: "load [<key>]", Aliases: []string{"l"}, Args: cobra.RangeArgs(0, 1), Short: "[DEPRECATED] Load the stored configuration", Long: `Load the configuration that is stored under the given key. Simply speaking, the 'store' subcommand stores the current kubeconfig and this one can then be used to load it again. Storing the kubeconfig does not change it in any way, loading overwrites the current kubeconfig with the stored one. The key must consist of alphanumerical characters and dashes only, and it must neither begin nor end with a dash. If no key is given, you will be prompted for one. Note that loading kubeconfigs might not work if they have been created by plugins which have side effects when creating the kubeconfig, as only the kubeconfig and the plugin's state are restored, but the side effects cannot be reproduced. Loading an key that does not exist will result in an error and not change the current configuration. Note that the storage is shared between all terminal sessions.`, Deprecated: "use 'bookmark load' instead.", Run: bookmark.LoadCmd.Run, }
View Source
var StoreCmd = &cobra.Command{ Use: "store [<key>]", Aliases: []string{"s"}, Args: cobra.RangeArgs(0, 1), Short: "[DEPRECATED] Store the current configuration", Long: `Store the current configuration under the given key. Simply speaking, this command stores the current kubeconfig and the 'load' subcommand can then be used to load it again. Storing the kubeconfig does not change it in any way, loading overwrites the current kubeconfig with the stored one. Subsequent calls with the same key will overwrite the previously stored configuration with the current one. The key must consist of alphanumerical characters and dashes only, and it must neither begin nor end with a dash. If no key is given, you will be prompted for one. Note that loading kubeconfigs might not work if they have been created by plugins which have side effects when creating the kubeconfig, as only the kubeconfig and the plugin's state are restored, but the side effects cannot be reproduced. Note that the storage is shared between all terminal sessions.`, Deprecated: "use 'bookmark save' instead.", Run: bookmark.SaveCmd.Run, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.