Spec-Zone.ru › Nushell

attr search-terms for core

Attribute for adding search terms to custom commands.

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 }

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

Spec-Zone.ru

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