nushell/crates/nu-engine/src
Darren Schroeder f0e0ab35fc
allow custom commands to show up in $nu.scope.commands better (#8910)
# Description
This PR allows our custom commands to show up in `$nu.scope.commands`
better. It still needs work because this PR hard code the input and
output types as `Type::Any` but the reason they're being missed in the
first place is that they are not assigned an input and output type.

This allows things like this now. Note the `where is_custom == true` 

![image](https://user-images.githubusercontent.com/343840/232523925-97eeef78-9722-4184-b60f-9d06f994c8e3.png)

Another example.

![image](https://user-images.githubusercontent.com/343840/232525706-d4d088d8-6597-43ba-97c8-ab03c2c7408c.png)

![image](https://user-images.githubusercontent.com/343840/232525797-b7e9ded3-b299-489e-af33-7390f4291bfd.png)


# User-Facing Changes
<!-- List of all changes that impact the user experience here. This
helps us keep track of breaking 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 -- --check` to check standard code formatting (`cargo
fmt --all` applies these changes)
- `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used -A
clippy::needless_collect` to check that you're using the standard code
style
- `cargo test --workspace` to check that all tests pass
- `cargo run -- crates/nu-std/tests/run.nu` to run the tests for the
standard library

> **Note**
> from `nushell` you can also use the `toolkit` as follows
> ```bash
> use toolkit.nu # or use an `env_change` hook to activate it
automatically
> toolkit check pr
> ```
-->

# After Submitting
<!-- If your PR had any user-facing changes, update [the
documentation](https://github.com/nushell/nushell.github.io) after the
PR is merged, if necessary. This will help us keep the docs up to date.
-->
2023-04-17 11:19:37 -05:00
..
call_ext.rs Allow NU_LIBS_DIR and friends to be const (#8538) 2023-04-05 19:56:48 +03:00
column.rs use let-else syntax where possible (#8886) 2023-04-14 20:51:38 +02:00
documentation.rs FEATURE: print example command results in the help (#8189) 2023-02-26 21:05:11 +01:00
env.rs Allow NU_LIBS_DIR and friends to be const (#8538) 2023-04-05 19:56:48 +03:00
eval.rs Allow NU_LIBS_DIR and friends to be const (#8538) 2023-04-05 19:56:48 +03:00
glob_from.rs Ls symlink fix (#8276) 2023-03-20 11:04:47 -05:00
lib.rs LazyRecord (#7619) 2023-01-18 19:27:26 -08:00
nu_variable.rs Change NU_LIB_DIRS not to depend on $nu.config-path (#8887) 2023-04-14 23:16:00 +03:00
scope.rs allow custom commands to show up in $nu.scope.commands better (#8910) 2023-04-17 11:19:37 -05:00