We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With Nushell 0.89.0, the completion script generated by argc --argc-completions nushell causes error:
argc --argc-completions nushell
Error: × Automatically spreading lists is deprecated ╭─[<pathToArgc>\argc-completions\tmp\argc-completions.nu:1:1] 1 │ def _argc_completer [args: list<string>] { 2 │ argc --argc-compgen nushell "" $args · ──┬── · ╰── Spreading lists automatically when calling external commands is deprecated and will be removed in 0.91. 3 │ | split row "\n" | range 0..-2 ╰──── help: Use the spread operator (put a '...' before the argument)
Use spread operator (added in Nushell 0.89.0, won't work in previous versions) in ...$args.
...$args
argc/src/bin/argc/completions/argc.nu
Lines 1 to 5 in afa5302
def _argc_completer [args: list<string>] { argc --argc-compgen nushell "" ...$args | split row "\n" | range 0..-2 | each { |line| $line | split column "\t" value description } | flatten }
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
With Nushell 0.89.0, the completion script generated by
argc --argc-completions nushell
causes error:Possible solution (breaking change)
Use spread operator (added in Nushell 0.89.0, won't work in previous versions) in
...$args
.argc/src/bin/argc/completions/argc.nu
Lines 1 to 5 in afa5302
The text was updated successfully, but these errors were encountered: