]> git.eshelyaron.com Git - kubed.git/commit
New transient menu for displaying resources
authorEshel Yaron <me@eshelyaron.com>
Sat, 3 Aug 2024 15:05:27 +0000 (17:05 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 3 Aug 2024 15:05:27 +0000 (17:05 +0200)
commitdf1cf34e37bcf4b00463463808ba869ccbd0da42
treec21b4bce430df0c7fa2161336b444d1d502041d0
parented6d13e19695d94f0987d2ad3abb0facddd3cbcd
New transient menu for displaying resources

* kubed-transient.el (kubed-transient-display): New command.
(kubed-transient): Bind it.
* kubed.el (kubed-display-resource-short-description)
(kubed-namespaced-p): New functions.
(kubed-display-resource): New command, use them.
(kubed-display-resource-handle-bookmark)
(kubed-display-resource-make-bookmark): Simplify.
(kubed-define-resource): Adjust generated
'kubed-display-RESOURCE' commands to honor namespace set in
'kubed-transient-display'.  Change binding of these commands
from suffix "g" to suffix "RET".
(kubed-api-resources): Add optional arg ONLY-NAMESPACED.
(kubed-prefix-map, kubed-menu-map): Bind 'kubed-define-resource'.
kubed-transient.el
kubed.el