Skip to content

Conversation

tksm
Copy link
Contributor

@tksm tksm commented Jan 22, 2023

Ref #159

This PR adds a dynamic completion for a resource query in the form <resource>/<name>. The video below shows how this completion works.

stern-resource-query.mov

@@ -234,8 +234,8 @@ stern -p
Stern supports command-line auto completion for bash, zsh or fish. `stern
--completion=(bash|zsh|fish)` outputs the shell completion code which work by being
evaluated in `.bashrc`, etc for the specified shell. In addition, Stern
supports dynamic completion for `--namespace` and `--context`. In order to use
that, kubectl must be installed on your environment.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe stern no longer requires kubectl, so I removed the line.

Copy link
Member

@rkmathi rkmathi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for implementation.
This feature seems very useful!

@rkmathi rkmathi merged commit 2983c8f into stern:master Jan 22, 2023
@tksm tksm deleted the query-completion branch January 22, 2023 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants