Skip to content
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

Add --watch support #45

Open
howardjohn opened this issue Jul 28, 2021 · 1 comment
Open

Add --watch support #45

howardjohn opened this issue Jul 28, 2021 · 1 comment

Comments

@howardjohn
Copy link

It would be awesome to deploy some big resource (say Knative Service) and then kubectl tree --watch it to see how things get ready.

The alternative would be watch kubectl tree, but then we lose colors. So maybe an alternative would be a way to always have colors, even when not a TTY?

@ahmetb
Copy link
Owner

ahmetb commented Jul 28, 2021

We could, but I am not sure if the benefits outweigh the effort to get this done. As you said, the watch command can be an easy hack.

FWIW it's "us" disabling the colors when the command is piped or executed with a stdin that's not a tty. So maybe we can allow something like --force-colors and you can use watch --color.

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

No branches or pull requests

2 participants