Documentation ¶
Index ¶
- Variables
- func BuildPromptKeyBinds() []prompt.KeyBind
- func ExecuteAndGetResult(program string, args string, env ...string) (int, string)
- func Executor(program string, args string, env ...string)
- func GetActiveCompleter() prompt.Completer
- func GetActiveExecutor() prompt.Executor
- func GetDefaultExecutor(runtime string, callback func(), env ...string) prompt.Executor
- func HelpInfo(args []string, out io.Writer)
- func IgnoreCaseMatch(text string, cmd string) bool
- func Initialize()
- func LivePrefix() (prefix string, useLivePrefix bool)
- func Logo(args []string, out io.Writer)
- func SelectCurrentEnvironment()
- func StartWithMatch(text string, cmd string) bool
- type Command
- type Environment
- type Register
- type Runtime
- type RuntimeCompleter
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultCommands []Command
default commands are valid in all environments
View Source
var Environments = map[Environment]*Runtime{}
View Source
var Registers = map[Environment]Register{}
View Source
var Version = "Development Build"
DO NOT modify this, will inject form Git tags by CI/CD
Functions ¶
func BuildPromptKeyBinds ¶
func BuildPromptKeyBinds() []prompt.KeyBind
func ExecuteAndGetResult ¶
func GetDefaultExecutor ¶
func IgnoreCaseMatch ¶
func LivePrefix ¶
func StartWithMatch ¶
Types ¶
type Command ¶
type Environment ¶
type Environment string
const ( Kubernetes Environment = "Kubernetes" Docker Environment = "Docker" Rancher Environment = "Rancher" Istio Environment = "Istio" )
var ActiveEnvironment Environment
type Runtime ¶
type Runtime struct { Prefix string Completer *suggestions.GenericCompleter Executor prompt.Executor Setup func() LivePrefix func() (prefix string, useLivePrefix bool) Commands []Command }
func GetKubernetes ¶
func GetKubernetes() *Runtime
func GetRancher ¶
func GetRancher() *Runtime
type RuntimeCompleter ¶ added in v1.1.20210626
type RuntimeCompleter struct { *suggestions.GenericCompleter *Runtime }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.