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

Added -n argument to script/logs akin to 'tail -n ...' #234

Merged
merged 1 commit into from
Jan 31, 2023

Conversation

Njinx
Copy link
Contributor

@Njinx Njinx commented Jan 30, 2023

The argument is completely optional, passing positive integer $N to docker-compose -f ... logs --tail $N. --tail is documented here. On omission no functionality is changed.

mmguero added a commit to mmguero-dev/Malcolm that referenced this pull request Jan 31, 2023
@mmguero mmguero merged commit 18af350 into cisagov:main Jan 31, 2023
@mmguero
Copy link
Collaborator

mmguero commented Jan 31, 2023

actually this is broken, the [: 6 if args.service is not None else -1] needs to be changed to [: 8 if args.service is not None else -1] in order for the services argument to still work.

mmguero added a commit to mmguero-dev/Malcolm that referenced this pull request Jan 31, 2023
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