nushell/tests/fixtures/completions/custom_completion.nu

3 lines
100 B
Plaintext

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