Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions book/metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ The span "start" and "end" here refer to where the underline will be in the line

## Custom Metadata

You can attach arbitrary metadata to pipeline data using the [`metadata set`](/commands/docs/metadata_set.md) command with the `--merge` flag:
You can attach arbitrary metadata to pipeline data using the [`metadata set`](/commands/docs/metadata_set.md) command with the optional closure parameter:

```nu
"data" | metadata set --merge {custom_key: "custom_value"}
"data" | metadata set { merge {custom_key: "custom_value"} }
```

## HTTP Response Metadata
Expand Down
2 changes: 1 addition & 1 deletion book/special_variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The `$nu` constant is a record containing several useful values:
- `cache-dir`: A directory for non-essential (cached) data.
- `vendor-autoload-dirs`: A list of directories where third-party applications should install configuration files that will be auto-loaded during startup.
- `user-autoload-dirs`: A list of directories where the user may create additional configuration files which will be auto-loaded during startup.
- `temp-dir`: A path for temporary files that should be writeable by the user.
- `temp-dir`: A path for temporary files that should be writable by the user.
- `pid`: The PID of the currently running Nushell process.
- `os-info`: Information about the host operating system.
- `startup-time`: The amount of time (in duration) that it took for Nushell to start and process all configuration files.
Expand Down