diff options
author | Patrick Spek <p.spek@tyil.nl> | 2022-05-06 14:05:38 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2022-05-06 14:05:38 +0200 |
commit | b243bd381cf94588753baf77f5e0085a6db1f12c (patch) | |
tree | 2a31614457e89695a7f5ad84ec927c8d7bd5d8c4 /.local/bin/kubecontext | |
parent | 66115993163f771ee0dbb5d9435d468826a97705 (diff) |
Rename kubecontext to kubectx
Diffstat (limited to '.local/bin/kubecontext')
-rwxr-xr-x | .local/bin/kubecontext | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/.local/bin/kubecontext b/.local/bin/kubecontext deleted file mode 100755 index ac99869..0000000 --- a/.local/bin/kubecontext +++ /dev/null @@ -1,27 +0,0 @@ -#! /usr/bin/env perl6 - -#| Show all available contexts. -multi sub MAIN () -{ - run << kubectl config get-contexts >>; -} - -#| Switch to a given context. -multi sub MAIN ( - #| The name of the context to switch to. - Str:D $context, -) { - run << kubectl config use-context "$context" >>; -} - -#| Switch to a given namespace in a given context. -multi sub MAIN ( - #| The name of the context to switch to. - Str:D $context, - - #| The name of the namespace to switch to. - Str:D $namespace, -) { - samewith($context); - run << kubectl config set-context --current "--namespace=$namespace" >>; -} |