Added help externs command#8403
Added help externs command#8403sholderbach merged 5 commits intonushell:mainfrom klementievdmitry:main
help externs command#8403Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #8403 +/- ##
==========================================
- Coverage 68.25% 68.18% -0.07%
==========================================
Files 620 621 +1
Lines 99355 99514 +159
==========================================
+ Hits 67813 67857 +44
- Misses 31542 31657 +115
|
|
This should close #8301 👌 |
|
If we're going to have this command, I'd rather call it I also think that it would be good to have the The Just my two cents. |
help external commandhelp extern command
|
@klementievdmitry oops, I made a mistake. Sorry, but we can't use |
|
Well, I didn't even think about it, I just did 😄, and I have no other ideas. |
help extern commandhelp externs command
|
I'm thinking |
|
One thing we might do is to remove aliases and externals from nushell/crates/nu-cmd-lang/src/core_commands/help.rs Lines 88 to 115 in a52386e help name should be different based on whether name is a command, alias or known external. I think known externals might have one already, not sure, but the aliases should show a more customized message in addition to showing the wrapped command's help message. But these changes can be done in a future PR.
Ultimately, the |
I think |
|
OK, let's keep it |
|
I agree that |
|
I would like to move ahead with this even though I can understand the arguments for and against certain naming decisions. |
Description
help externs- command, which list external commandsCloses #8301
User-Facing Changes
Tests + Formatting
Don't forget to add tests that cover your changes.
Make sure you've run and fixed any issues with these commands:
cargo fmt --all -- --checkto check standard code formatting (cargo fmt --allapplies these changes)cargo clippy --workspace -- -D warnings -D clippy::unwrap_used -A clippy::needless_collectto check that you're using the standard code stylecargo test --workspaceto check that all tests passAfter Submitting
If your PR had any user-facing changes, update the documentation after the PR is merged, if necessary. This will help us keep the docs up to date.