Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 999 Bytes

File metadata and controls

44 lines (32 loc) · 999 Bytes
title attr complete
categories core
version 0.110.0
core Attribute for using another command as a completion source for all arguments.
usage Attribute for using another command as a completion source for all arguments.
editLink false
contributors false

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 }