Silly NuShell plugin to read Minecraft NBT

Better README

bwc9876.dev 9c0ad600 be32a4b0

verified
+37 -2
+37 -2
README.md
··· 1 1 2 - # nu_plugin_dbus 2 + # nu_plugin_nbt 3 3 4 4 Read Minecraft nbt in Nushell. 5 5 6 + ## Installation 7 + 8 + ### Shell 9 + 10 + Build / download the plugin and run `plugin add`. 11 + 12 + ```nu 13 + plugin add path/to/nu_plugin_nbt 14 + ``` 15 + 16 + Then to use it in your shell, run `plugin use`. 17 + 18 + ```nu 19 + plugin use nu_plugin_nbt 20 + ``` 21 + 22 + ### Script 23 + 24 + Build / download the plugin binary. When invoking your script pass its path with `--plugin`. 25 + 26 + ```nu 27 + nu --plugin path/to/nu_plugin_nbt my_script.nu 28 + ``` 29 + 6 30 ## Usage 31 + 32 + If your file ends in .nbt, nushell will pick nu_plugin_nbt to open it. 7 33 8 34 ```nu 9 35 open data.nbt 10 - # - or - 36 + ``` 37 + 38 + Otherwise, open it raw and pipe it to `from nt`. 39 + 40 + ```nu 11 41 open --raw data.dat | from nbt 12 42 ``` 13 43 44 + ### Preserve Data Types 45 + 46 + Passing `--with-tags` to `from nbt` will tag data with NBT types. 47 + 48 + This is useful if you need to convert back into NBT at some point. Note that this plugin does not handle writing (yet). 14 49 15 50