-
Notifications
You must be signed in to change notification settings - Fork 855
Little kubectl improvements #2227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
6fab8e5
56b2610
0b156c2
d571965
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -57,9 +57,12 @@ cube help: "kubectl help " | |
| cube plugin: "kubectl plugin " | ||
| cube version: "kubectl version " | ||
|
|
||
| cube {user.kubectl_action} [{user.kubectl_object}]: | ||
| cube {user.kubectl_action} [{user.kubectl_object}] [{user.kubectl_output_format_object}]: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Because the optional output format is attached to the generic Useful? React with 👍 / 👎.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That is correct. Suggest a fix
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @codex suggest a fix There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To use Codex here, create a Codex account and connect to github.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I know that git does not do such sanity checks to. I would say unless there is found a very nice way to do this, to not do the sanity check
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since the git integration also has this problem I would suggest accepting that until a nice solutions becomes clear
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From the community backlog session — agree that it's not necessary to filter this out unless you find an elegant way to do so. |
||
| insert("kubectl {kubectl_action} ") | ||
| insert(kubectl_object or "") | ||
| # requires beta: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you change this to not require beta? You could implement this command with an action instead doing the if statement in Python. You could also try using the Example of
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From the community backlog session — right now we do not require the beta for any functionality. This should be easy enough to fix! |
||
| if kubectl_output_format_object: insert(" -o {kubectl_output_format_object}") | ||
| insert(" ") | ||
|
|
||
| cube detach: | ||
| key("ctrl-p") | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As explained in https://github.com/talonhub/community/blob/main/CONTRIBUTING.md#coding-principles P05, we typically implement lists in .talon-list files unless we have a good reason to do otherwise to make it easier for users to customize. Some users might want to change the spoken forms. Would you mind migrating this to a .talon-list and either migrating the preexisting list or filing an issue for that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do when I have some time.