Spec-Zone.ru › Nushell

attr complete for core

Attribute for using another command as a completion source for all arguments.

Signature

> attr complete {flags} (completer)

Parameters

  • completer: Name of the completion command.

Input/output types:

input output
nothing string

Examples

Use another command as completion source.

> def complete-foo [spans: list<string>] {
    [bar baz qux spam eggs] | where $it not-in $spans
}

@complete 'complete-foo'
def foo [...args] { $args }

Copyright © 2019–2026 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/attr_complete.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API