Repository navigation
remove the --encoding option from register in the examples - #8038
Merged
Merged
Conversation
This commit mitigates the following error, because `register` does not have `--encoding` as an option now ``` > register ~/.local/share/cargo/bin/nu_plugin_gstat --encoding msgpack Error: nu::parser::unknown_flag (link) × The `register` command doesn't have flag `encoding`. ╭─[entry nushell#22:1:1] 1 │ register ~/.local/share/cargo/bin/nu_plugin_gstat --encoding msgpack · ─────┬──── · ╰── unknown flag ╰──── help: Available flags: --help(-h), --shell(-s). Use `--help` for more information. ```
I did not check the other files, but there is a `--encoding` flag on `register` in two other plugins. ```bash > rg -- "--encoding" crates/nu_plugin_inc/README.md 13:register <path to installed plugin> --encoding json crates/nu_plugin_query/README.md 13:> register <path to installed plugin> --encoding json ```
Member
Author
|
i forgot about the other plugins 👀
now |
Member
Author
additional informationi'm using the latest
|
Contributor
|
good catch. thanks! |
Member
Author
my pleasure 😋 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
As
registerdoes not have--encodingas an option now, the Git stat plugin for Nushell is not correct anymoreThis PR then simply removes
--encoding msgpackfrom theregistercall in the documentation of thegstatplugin.User-Facing Changes
There is no user-facing change in this PR.
Tests + Formatting
This PR does not change any source code.
After Submitting
Same here, nothing to report 😉