cmd

package
Version: v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOrPromptContexts added in v0.3.0

func GetOrPromptContexts(context yey.Context, argNames []string, lastNames []string) ([]string, error)

Parses given value into context name and variant and, as needed, prompt user for those values

func LoadLastNames added in v0.2.0

func LoadLastNames() ([]string, error)

LoadLastNames loads from home dir the context names that were last selected by user

func NewRoot

func NewRoot() *cobra.Command

NewRoot creates the root cobra command

func PromptContainers added in v0.3.0

func PromptContainers(containers []string, otherContainers []string, message string) ([]string, error)

Prompts user to multi-select among given containers and optionally also other containers (which are displayed in yellow)

func PromptImages added in v0.3.0

func PromptImages(allImages []string) ([]string, error)

Prompts user to multi-select among given images

func SaveLastNames added in v0.2.0

func SaveLastNames(names []string) error

SaveLastNames saves to home dir the context names that were last selected by user

Types

This section is empty.

Directories

Path Synopsis
get

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL