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

Feature request: --follow=false #114

Open
guettli opened this issue Jun 6, 2023 · 2 comments
Open

Feature request: --follow=false #114

guettli opened this issue Jun 6, 2023 · 2 comments
Assignees

Comments

@guettli
Copy link

guettli commented Jun 6, 2023

I would like to use this tool to fetch logs.

It would be great to have --follow=false.

@chandanpasunoori
Copy link
Collaborator

@guettli as if now kail will log from start of command, unless --since flag is used, what is expected if --follow=false is created?

eg:
kail -d deployment_name --since=1m --follow=false # with explicit since flag
or
kail -d deployment_name --follow=false # with some default time (may be 1m?)

@chandanpasunoori chandanpasunoori self-assigned this Jun 6, 2023
@guettli
Copy link
Author

guettli commented Jun 6, 2023

I expect this command to show the logs of the last minute, and then exit:

kail -d deployment_name --since=1m --follow=false

And this command makes not much sense. It should just print nothing:

kail -d deployment_name --follow=false

... or like you suggested, it shows the last X minutes. I would use 5 minutes.

Does this make sense to you?

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