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 tailing functionality #9

Merged
merged 12 commits into from
Jul 10, 2024
Merged

Add tailing functionality #9

merged 12 commits into from
Jul 10, 2024

Conversation

jskiba
Copy link
Contributor

@jskiba jskiba commented Jul 4, 2024

  • add --follow flag
  • allow printing logs in live mode
  • update group flag usage

logs/command.go Outdated Show resolved Hide resolved
@jskiba jskiba merged commit 6757cfa into main Jul 10, 2024
2 checks passed
@jskiba jskiba deleted the introducing-tail branch July 10, 2024 07:00
Comment on lines +199 to +201
if logs.NextPage == "" {
break
}

Choose a reason for hiding this comment

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

Moving this up here isn't necessarily safe. If there are events sent back in the last page, this will drop them. (The API might not do this currently, but it probably will in the future.)

I think we probably want this to go back to its original spot, and then the time.Sleep can go at the end?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants