commands

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package commands provides the command implementations for the Kion CLI tool.

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) DeleteLocalFavorites added in v0.15.0

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

DeleteLocalFavorites prompts for confirmation and deletes local favorites.

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 and favorites from the Kion API. 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 and sets the favorites region as the default region if needed to ensure precedence.

func (*Cmd) ValidateCmdStak

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

ValidateCmdStak validates the flags passed to the stak command.

func (*Cmd) ValidateSAML added in v0.15.0

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

ValidateSAML validates SAML configuration and connectivity.

Jump to

Keyboard shortcuts

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