mirror of
https://github.com/nushell/nushell.git
synced 2025-08-18 02:20:17 +02:00
Allow external binary to register custom commands. (#1780)
This changeset contains everything that a separate binary needs to register its own commands (including the new help function). It is very possible that this commit misses other pub use exports, but the contained ones work for our use cases so far.
This commit is contained in:
committed by
GitHub
parent
f5a1d2f4fb
commit
e7f08cb21d
@@ -131,7 +131,7 @@ You can also learn more at https://www.nushell.sh/book/"#;
|
||||
}
|
||||
|
||||
#[allow(clippy::cognitive_complexity)]
|
||||
pub(crate) fn get_help(
|
||||
pub fn get_help(
|
||||
cmd: &dyn WholeStreamCommand,
|
||||
registry: &CommandRegistry,
|
||||
) -> impl Into<OutputStream> {
|
||||
|
Reference in New Issue
Block a user