From b243bd381cf94588753baf77f5e0085a6db1f12c Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Fri, 6 May 2022 14:05:38 +0200
Subject: Rename kubecontext to kubectx
---
.local/bin/kubecontext | 27 ---------------------------
.local/bin/kubectx | 27 +++++++++++++++++++++++++++
2 files changed, 27 insertions(+), 27 deletions(-)
delete mode 100755 .local/bin/kubecontext
create mode 100755 .local/bin/kubectx
(limited to '.local')
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" >>;
-}
diff --git a/.local/bin/kubectx b/.local/bin/kubectx
new file mode 100755
index 0000000..ac99869
--- /dev/null
+++ b/.local/bin/kubectx
@@ -0,0 +1,27 @@
+#! /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" >>;
+}
--
cgit v1.1