jinnovation / kele.el

🥤 Spritzy Kubernetes cluster management for Emacs
https://jonathanj.in/kele.el/
Apache License 2.0
72 stars 4 forks source link

Enable/disable `get` and `list` suffixes depending on `can-i` auth #184

Closed jinnovation closed 3 months ago

jinnovation commented 3 months ago

Closes #152.

This PR uses the :inapt-if-not slot in transient-suffix to disable the get and list suffixes on kele-resource depending on whether or not the user has permission to get and list the given resource for the given context.

codecov-commenter commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 71.70%. Comparing base (7719ca6) to head (9e97219). Report is 29 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #184 +/- ## ========================================== - Coverage 73.92% 71.70% -2.23% ========================================== Files 1 1 Lines 629 682 +53 ========================================== + Hits 465 489 +24 - Misses 164 193 +29 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.