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 options for until, reverse and output. #7

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

whiskeyonrocks
Copy link

No description provided.

if (opts.identifier) args.push('-t', opts.identifier);
if (opts.unit) args.push('-u', opts.unit);
if (opts.output && supportedOutputFormats.includes(opts.output)) args.push('-o', opts.output);
Copy link
Owner

Choose a reason for hiding this comment

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

What is the reason for specifying the output format? The library always converts the stream to JS objects.

@@ -12,8 +14,12 @@ function Journalctl (opts) {
if (opts.all) args.push('-a');
if (opts.lines) args.push('-n', opts.lines);
if (opts.since) args.push('-S', opts.since);
if (opts.until) args.push('-U', opts.until);
if (opts.reverse) args.push('-r');
Copy link
Owner

Choose a reason for hiding this comment

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

This contradicts the '-f' argument.

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