cmd

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 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)

GetOrPromptContexts 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)

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

func PromptImagesAndPlatforms added in v0.5.1

func PromptImagesAndPlatforms(allImages []yey.ImageAndPlatform) ([]yey.ImageAndPlatform, error)

PromptImagesAndPlatforms 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
y or Y : Canonical URL