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

feat: add customizable terminators #15

Merged
merged 1 commit into from
Oct 30, 2023
Merged

feat: add customizable terminators #15

merged 1 commit into from
Oct 30, 2023

Conversation

t3hmrman
Copy link
Contributor

@t3hmrman t3hmrman commented Oct 30, 2023

Whiel using cargo-get in scripts, it is often useful to be able to change the ending character of the output -- ensuring that a newline does not get printed, adding a NUL terminator, etc.

This commit adds an option --terminator which changes the terminator that is printed after the requested output from cargo-get.

Resolves #14

Copy link
Owner

@nicolaiunrein nicolaiunrein left a comment

Choose a reason for hiding this comment

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

Thanks for this neat PR and for the overall cleanup. It is unfortunate that the delimiter does not accept Nul as an argument otherwise we could re-use it's implementation. I think we should leave it like it is for now. I am happy to merge once the two small changes are implemented.

src/cli.rs Outdated Show resolved Hide resolved
src/terminator.rs Outdated Show resolved Hide resolved
Whiel using `cargo-get` in scripts, it is often useful to be able to
change the ending character of the output -- ensuring that a newline
does *not* get printed, adding a NUL terminator, etc.

This commit adds an option `--terminator` which changes the terminator
that is printed after the requested output from `cargo-get`.

Signed-off-by: vados <[email protected]>
@nicolaiunrein nicolaiunrein merged commit a5af173 into nicolaiunrein:master Oct 30, 2023
20 checks passed
@t3hmrman t3hmrman deleted the 14/feat/add-customizable-termination branch October 30, 2023 10:30
@t3hmrman
Copy link
Contributor Author

t3hmrman commented Oct 30, 2023

Thanks again for the awesome project and quick reviews/and help, going to be nice to take out the TODO comment in my Justfile :)

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.

Support for printing without newlines
2 participants