nushell/tests/fixtures/completions/custom_completion.nu

2 lines
100 B
Text

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