commands

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	// contains filtered or unexported fields
}

Cmd is the main command object for the Kion CLI. It makes the configuration and cache available to all command actions.

func NewCommands

func NewCommands(cfg *structs.Configuration) *Cmd

NewCommands stands up a new instance of commands with the provided configuration.

func (*Cmd) AfterCommands

func (c *Cmd) AfterCommands(cCtx *cli.Context) error

AfterCommands run after any subcommands are executed.

func (*Cmd) BeforeCommands

func (c *Cmd) BeforeCommands(cCtx *cli.Context) error

BeforeCommands run after the context is ready but before any subcommands are executed. Currently used to test feature compatibility with targeted Kion.

func (*Cmd) Favorites

func (c *Cmd) Favorites(cCtx *cli.Context) error

Favorites generates short term access keys or launches the web console from stored favorites. If a favorite is found that matches the passed argument it is used, otherwise the user is walked through a wizard to make a selection.

func (*Cmd) FedConsole

func (c *Cmd) FedConsole(cCtx *cli.Context) error

FedConsole opens the CSP console for the selected account and cloud access role in the user's default browser.

func (*Cmd) FlushCache

func (c *Cmd) FlushCache(cCtx *cli.Context) error

FlushCache clears the Kion CLI cache.

func (*Cmd) GenStaks

func (c *Cmd) GenStaks(cCtx *cli.Context) error

GenStaks generates short term access keys by walking users through an interactive prompt. Short term access keys are either printed to stdout or a sub-shell is created with them set in the environment.

func (*Cmd) ListFavorites

func (c *Cmd) ListFavorites(cCtx *cli.Context) error

ListFavorites prints out the users stored favorites. Extra information is provided if the verbose flag is set.

func (*Cmd) PushFavorites

func (c *Cmd) PushFavorites(cCtx *cli.Context) error

PushFavorites pushes the local favorites to a target instance of Kion.

func (*Cmd) RunCommand

func (c *Cmd) RunCommand(cCtx *cli.Context) error

RunCommand generates creds for an AWS account then executes the user provided command with said credentials set.

func (*Cmd) ValidateCmdConsole

func (c *Cmd) ValidateCmdConsole(cCtx *cli.Context) error

validateCmdConsole validates the flags passed to the console command.

func (*Cmd) ValidateCmdRun

func (c *Cmd) ValidateCmdRun(cCtx *cli.Context) error

validateCmdRun validates the flags passed to the run command.

func (*Cmd) ValidateCmdStak

func (c *Cmd) ValidateCmdStak(cCtx *cli.Context) error

validateCmdStak validates the flags passed to the stak command.

Jump to

Keyboard shortcuts

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