mirror of
https://github.com/nushell/nushell.git
synced 2025-04-29 23:54:26 +02:00
# Description This pr is going to add a new command named `help pipe-and-redirect`. So user can detect such feature easier. # User-Facing Changes Here is the output of this command: ``` ╭───┬────────┬──────────────────────────────────────┬──────────────────────────────────────────────────────────────┬─────────────────────╮ │ # │ symbol │ name │ description │ example │ ├───┼────────┼──────────────────────────────────────┼──────────────────────────────────────────────────────────────┼─────────────────────┤ │ 0 │ | │ pipe │ pipeline stdout of a command to another command │ ^cmd1 | ^cmd2 │ │ 1 │ e>| │ stderr pipe │ pipeline stderr of a command to another command │ ^cmd1 e>| ^cmd2 │ │ 2 │ o+e>| │ stdout and stderr pipe │ pipeline stdout and stderr of a command to another command │ ^cmd1 o+e>| ^cmd2 │ │ 3 │ o> │ redirection │ redirect stdout of a command, overwriting a file │ ^cmd1 o> file.txt │ │ 4 │ e> │ stderr redirection │ redirect stderr of a command, overwriting a file │ ^cmd1 e> file.txt │ │ 5 │ o+e> │ stdout and stderr redirection │ redirect stdout and stderr of a command, overwriting a file │ ^cmd1 o+e> file.txt │ │ 6 │ o>> │ redirection append │ redirect stdout of a command, appending to a file │ ^cmd1 o> file.txt │ │ 7 │ e>> │ stderr redirection append │ redirect stderr of a command, appending to a file │ ^cmd1 e> file.txt │ │ 8 │ o+e>> │ stdout and stderr redirection append │ redirect stdout and stderr of a command, appending to a file │ ^cmd1 o+e> file.txt │ │ 9 │ o>| │ │ Unsupported, it's the same to `|`, use it instead │ │ ├───┼────────┼──────────────────────────────────────┼──────────────────────────────────────────────────────────────┼─────────────────────┤ │ # │ symbol │ name │ description │ example │ ╰───┴────────┴──────────────────────────────────────┴──────────────────────────────────────────────────────────────┴─────────────────────╯ ``` # Tests + Formatting # After Submitting Should update more examples in [nushell doc](https://www.nushell.sh/lang-guide/chapters/pipelines.html) to fill more examples
23 lines
649 B
Rust
23 lines
649 B
Rust
mod help_;
|
|
mod help_aliases;
|
|
mod help_commands;
|
|
mod help_escapes;
|
|
mod help_externs;
|
|
mod help_modules;
|
|
mod help_operators;
|
|
mod help_pipe_and_redirect;
|
|
|
|
pub use help_::Help;
|
|
pub use help_aliases::HelpAliases;
|
|
pub use help_commands::HelpCommands;
|
|
pub use help_escapes::HelpEscapes;
|
|
pub use help_externs::HelpExterns;
|
|
pub use help_modules::HelpModules;
|
|
pub use help_operators::HelpOperators;
|
|
pub use help_pipe_and_redirect::HelpPipeAndRedirect;
|
|
|
|
pub(crate) use help_::{highlight_search_in_table, highlight_search_string};
|
|
pub(crate) use help_aliases::help_aliases;
|
|
pub(crate) use help_commands::help_commands;
|
|
pub(crate) use help_modules::help_modules;
|