- Aide facon Nushell : help <cmd>, <cmd> -h/--help, help, help commands, help --find <texte>, help <agent> (fiche info) - sections Usage/Flags/ Command Type/Parameters/Input-output/Examples avec couleurs - Commande version : tableau Nushell (commit, build, rustc, theme...) + --json ; build.rs pour commit/branche git ; -V reste la version courte - Themes : --theme <nom> (default, ocean, sunset, forest, dracula, mono) + settings.theme dans la config ; activation VT Windows pour les couleurs - Cadres blancs Nushell partages : list, search, status, doctor, ls/ps/ where/get et menu d autocompletion Tab encadre (colonnes name/description)
13 lines
360 B
Rust
13 lines
360 B
Rust
//! help: Nushell-style help — the overview, one command, the command list,
|
|
//! or a keyword search through it.
|
|
|
|
use super::*;
|
|
|
|
pub fn run(app: &App, command: Option<&str>, find: Option<&str>) -> Result<i32> {
|
|
if let Some(text) = find {
|
|
crate::help::print_find(app, text);
|
|
return Ok(0);
|
|
}
|
|
crate::help::print_topic(app, command)
|
|
}
|