attr category for core
Attribute for adding a category to custom commands.
Signature
> attr category {flags} (category)
Parameters
-
category: Category of the custom command.
Input/output types:
| input | output |
|---|---|
| nothing | string |
Examples
Add a category to a custom command.
> # Double numbers
@category math
def double []: [number -> number] { $in * 2 }
Copyright © 2019–2026 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/attr_category.html