From: Eshel Yaron Date: Wed, 14 Aug 2024 17:35:48 +0000 (+0200) Subject: ; Use local context as default in some prompts X-Git-Tag: v0.3.2~9 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cdeb94ea56fb17d60896fb6b21350857e025726a;p=kubed.git ; Use local context as default in some prompts --- diff --git a/kubed.el b/kubed.el index 485b1c0..d96fa81 100644 --- a/kubed.el +++ b/kubed.el @@ -2259,7 +2259,7 @@ Optional argument DEFAULT is the minibuffer default argument." (defun kubed-use-context (context) "Set current Kubernetes context to CONTEXT." (interactive - (list (kubed-read-context "Use context" (kubed-current-context)))) + (list (kubed-read-context "Use context" (kubed-local-context)))) (unless (zerop (call-process kubed-kubectl-program nil nil nil @@ -2271,7 +2271,7 @@ Optional argument DEFAULT is the minibuffer default argument." (defun kubed-rename-context (old new) "Rename Kubernetes context OLD to NEW." (interactive - (let ((old (kubed-read-context "Rename context" (kubed-current-context)))) + (let ((old (kubed-read-context "Rename context" (kubed-local-context)))) (list old (read-string (format-prompt "Rename context to" old) nil 'kubed-context-history old)))) (unless (zerop