emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/kubed cdeb94ea56 03/12: ; Use local context as default


From: ELPA Syncer
Subject: [elpa] externals/kubed cdeb94ea56 03/12: ; Use local context as default in some prompts
Date: Thu, 15 Aug 2024 12:58:28 -0400 (EDT)

branch: externals/kubed
commit cdeb94ea56fb17d60896fb6b21350857e025726a
Author: Eshel Yaron <me@eshelyaron.com>
Commit: Eshel Yaron <me@eshelyaron.com>

    ; Use local context as default in some prompts
---
 kubed.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kubed.el b/kubed.el
index 485b1c05bc..d96fa8121f 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]