nushell/tests/fixtures/completions/custom_completion.nu

3 lines
100 B
Plaintext
Raw Normal View History

def animals [] { ["cat", "dog", "eel" ] }
def my-command [animal: string@animals] { print $animal }