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 reading and writing from stdin #3

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

Kas-tle
Copy link
Contributor

@Kas-tle Kas-tle commented Mar 11, 2024

Allows the user to pipe input to nbt-dump instead of providing an input file. Useful if the input is coming from another terminal task, such as decoding nbt from base64.

For example:

echo 'CgAAAwgAYmxvY2tfaWTbAwAACAQAbmFtZRkAbWluZWNyYWZ0OmN5YW5fdGVycmFjb3R0YQQJAG5hbWVfaGFzaN09COzMuHwAAwoAbmV0d29ya19pZIWPCzoKBgBzdGF0ZXMAAwcAdmVyc2lvbgRGFAEA' | base64 --decode | nbt-dump

Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com>
@extremeheat
Copy link
Owner

Thanks!

@extremeheat extremeheat merged commit 457a088 into extremeheat:master Mar 11, 2024
1 check passed
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.

None yet

2 participants