metadata for debug
Get the metadata for items in the stream.
Command Type
built-in
Signature
> metadata {flags} (expression)
Parameters
expression: The expression you want metadata for. When given, pipeline input is ignored.
Input/output types:
| input | output |
|---|---|
| any | record |
Examples
Get the metadata of a variable.
> let a = 42; metadata $aGet the metadata of the input.
> ls | metadataGet the metadata of a closure parameter. The closure's input is ignored.
> [1] | each {|x| metadata $x } | columns
╭───┬──────╮
│ 0 │ span │
╰───┴──────╯Notes
With an expression, the result describes only that expression (its span) and pipeline input is ignored. Without one, the result is the input's pipeline metadata.
Subcommands:
| name | description | type |
|---|---|---|
metadata access | Access the metadata for the input stream within a closure. | built-in |
metadata set | Set the metadata for items in the stream. | built-in |