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

Support saving a snapshot of the output to a file #57

Closed
dsidirop opened this issue Feb 8, 2022 · 1 comment
Closed

Support saving a snapshot of the output to a file #57

dsidirop opened this issue Feb 8, 2022 · 1 comment

Comments

@dsidirop
Copy link
Contributor

dsidirop commented Feb 8, 2022

Something like:

      nats-top    -o    snapshot.txt
      nats-top    -o    -    # this prints to standard output

This will save the first "terminal output" generated by nats into the file 'snapshot.txt' and then nats-top will exit.

@dsidirop
Copy link
Contributor Author

dsidirop commented Feb 8, 2022

@wallyqs New pull request up:

#58

wallyqs pushed a commit that referenced this issue Feb 10, 2022
* feat (cli flag '-o -'): passing '-o -' now prints the snapshot to the standard output

Co-authored-by: Kyriakos Sidiropoulos <kyriakos.sidiropoulos@laerdal.com>
@dsidirop dsidirop closed this as completed May 5, 2022
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

1 participant