commands

package
v0.0.0-...-2caf503 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// CompletionCommand is the command to create things
	CompletionCommand = &cobra.Command{
		Use:                   "completion <bash|fish|zsh> [--stdout]",
		Args:                  cobra.ExactArgs(1),
		DisableFlagsInUseLine: true,
		Short:                 "Create completion file for bash, fish, or zsh",
		Long: `Generates shell completion code to tab-complete gsctl's commands and
some required flags.

The completion file will either be written to the current directory
or, when adding the --stdout flag, be written to the standard output.

Bash
----

To enable bash completion for gsctl, add a line like this
to your ~/.bash_profile

    source <(gsctl completion bash --stdout)

Then start a new terminal session.

Fish
----

Run

    gsctl completion fish --stdout > ~/.config/fish/completions/gsctl.fish

and then start a new terminal session.

Zsh
---

The generic installation procedure for zsh is:

1. Decide for a target directory from your $FPATH, e. g. ~/.my_completion
   and execute this:

   gsctl completion zsh --stdout > ~/.my_completion/_gsctl

2. Re-initialize your completion files:

   rm -f ~/.zcompdump; compinit
`,
		PreRun: validateCompletionPreconditions,
		Run:    generateCompletionFile,
	}
)
View Source
var RootCommand = &cobra.Command{
	Use: config.ProgramName,

	PersistentPreRunE: initConfig,
	Run:               printResult,
}

RootCommand is the main command of the CLI

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cluster
Package cluster defines the 'create cluster' command.
Package cluster defines the 'create cluster' command.
keypair
Package keypair implements the 'create keypair' command.
Package keypair implements the 'create keypair' command.
kubeconfig
Package kubeconfig implements the 'create kubeconfig' command.
Package kubeconfig implements the 'create kubeconfig' command.
nodepool
Package nodepool implements the "create nodepool" command.
Package nodepool implements the "create nodepool" command.
cluster
Package cluster implements the 'delete cluster' sub-command.
Package cluster implements the 'delete cluster' sub-command.
endpoint
Package endpoint implements the 'delete endpoint' sub-command.
Package endpoint implements the 'delete endpoint' sub-command.
nodepool
Package nodepool implements the "delete nodepool" command.
Package nodepool implements the "delete nodepool" command.
Package errors defines errors that can occur in command/input validation and execution and ways to handle those.
Package errors defines errors that can occur in command/input validation and execution and ways to handle those.
Package list holds the 'list *' sub-commands.
Package list holds the 'list *' sub-commands.
clusters
Package clusters implements the 'list clusters' sub-command.
Package clusters implements the 'list clusters' sub-command.
endpoints
Package endpoints implements the 'list endpoints' sub-command.
Package endpoints implements the 'list endpoints' sub-command.
keypairs
Package keypairs implements the 'list keypairs' sub-command.
Package keypairs implements the 'list keypairs' sub-command.
nodepools
Package nodepools implements the 'list nodepools' sub-command.
Package nodepools implements the 'list nodepools' sub-command.
organizations
Package organizations implements the 'list organizations' sub-command.
Package organizations implements the 'list organizations' sub-command.
releases
Package releases implements the 'list releases' sub-command.
Package releases implements the 'list releases' sub-command.
Package logout implements the logout command.
Package logout implements the logout command.
Packe ping implements the ping command.
Packe ping implements the ping command.
cluster
Package cluster implements the 'scale cluster' command.
Package cluster implements the 'scale cluster' command.
cluster
Package cluster implements the 'show cluster' command.
Package cluster implements the 'show cluster' command.
nodepool
Package nodepool implements the 'show nodepool' command.
Package nodepool implements the 'show nodepool' command.
release
Package release implements the 'show release' command.
Package release implements the 'show release' command.
Package types defines types to be used in several commands.
Package types defines types to be used in several commands.
cluster
Package cluster implements the "update cluster" command.
Package cluster implements the "update cluster" command.
nodepool
Package nodepool implements the "update nodepool" command.
Package nodepool implements the "update nodepool" command.

Jump to

Keyboard shortcuts

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