nu-std 0.112.1

The standard library of Nushell
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std/testing *
use std/assert
use std/help

@test
def show_help_on_commands [] {
    let help_result = (help alias)
    assert ("item not found" not-in $help_result)
}

@test
def show_help_on_error_make [] {
    let help_result = (help error make)
    assert ("Error: nu::shell::eval_block_with_input" not-in $help_result)
}