attr search-terms

For core.

Attribute for adding search terms to custom commands.

Command Type

built-in

Signature

> attr search-terms {flags} ...rest

Parameters

  • ...rest: Search terms.

Input/output types:

input output
nothing list<string>

Examples

Add search terms to a custom command.

> # Double numbers
    @search-terms multiply times
    def double []: [number -> number] { $in * 2 }

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