You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: book/metadata.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,10 +40,10 @@ The span "start" and "end" here refer to where the underline will be in the line
40
40
41
41
## Custom Metadata
42
42
43
-
You can attach arbitrary metadata to pipeline data using the [`metadata set`](/commands/docs/metadata_set.md) command with the `--merge` flag:
43
+
You can attach arbitrary metadata to pipeline data using the [`metadata set`](/commands/docs/metadata_set.md) command with the optional closure parameter:
44
44
45
45
```nu
46
-
"data" | metadata set --merge {custom_key: "custom_value"}
46
+
"data" | metadata set { merge {custom_key: "custom_value"} }
Copy file name to clipboardExpand all lines: book/special_variables.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ The `$nu` constant is a record containing several useful values:
26
26
-`cache-dir`: A directory for non-essential (cached) data.
27
27
-`vendor-autoload-dirs`: A list of directories where third-party applications should install configuration files that will be auto-loaded during startup.
28
28
-`user-autoload-dirs`: A list of directories where the user may create additional configuration files which will be auto-loaded during startup.
29
-
-`temp-dir`: A path for temporary files that should be writeable by the user.
29
+
-`temp-dir`: A path for temporary files that should be writable by the user.
30
30
-`pid`: The PID of the currently running Nushell process.
31
31
-`os-info`: Information about the host operating system.
32
32
-`startup-time`: The amount of time (in duration) that it took for Nushell to start and process all configuration files.
0 commit comments