attr complete external

For core.

Attribute for enabling use of the external completer for internal commands.

Command Type

built-in

Signature

> attr complete external {flags}

Input/output types:

input output
nothing nothing

Examples

Use the external completer for a wrapper command.

> @complete external
def --wrapped jc [...args] {
    ^jc ...$args | from json
}

Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.