id = "kubectx" name = "kubectx" description = "Switch between Kubernetes contexts." homepage = "https://github.com/ahmetb/kubectx" executables = ["kubectx"] [commands] format = 1 label = "Switch context" description = "Switch, show or delete kubectl contexts." quality = "ai-draft" base = "fig:kubectx" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/kubectx.ts" license = "MIT" [[commands.field]] id = "context" label = "Context" description = "Leave empty to list contexts." type = "string" position = 0 sources = ["fig"] [[commands.field]] id = "current" label = "Show current context" type = "boolean" option = ["--current", "-c"] sources = ["fig"] [[commands.field]] id = "unset" label = "Unset current context" type = "boolean" option = ["--unset", "-u"] sources = ["fig"] [[commands.field]] id = "delete" label = "Delete context" type = "string" option = ["-d"] multiple = true effect = "delete" sources = ["fig"] [[commands.task]] id = "switch" label = "Switch context" fields = ["context"] required = ["context"] [[commands.task]] id = "current" label = "Show current context" set = { current = [true] } fields = [] required = [] [[commands.group]] id = "basic" label = "Basic" fields = ["context", "current"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["unset", "delete"]