mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 00:54:56 +02:00
Option to replace command same name (#374)
* option to replace command same name * moved order of custom value declarations * arranged dataframe folders and objects * sort help commands by name * added dtypes function for debugging * corrected name for dataframe commands * command names using function
This commit is contained in:
@ -24,7 +24,8 @@ fn eval_call(
|
||||
call: &Call,
|
||||
input: PipelineData,
|
||||
) -> Result<PipelineData, ShellError> {
|
||||
let decl = engine_state.get_decl(call.decl_id);
|
||||
let decl = engine_state.get_decl_with_input(call.decl_id, &input);
|
||||
|
||||
if call.named.iter().any(|(flag, _)| flag.item == "help") {
|
||||
let full_help = get_full_help(&decl.signature(), &decl.examples(), engine_state);
|
||||
Ok(Value::String {
|
||||
|
Reference in New Issue
Block a user