From 926afc9702f91fc4c6b84d99c0dd13a8beb7ba1f Mon Sep 17 00:00:00 2001 From: The Bearodactyl Date: Sun, 27 Jul 2025 18:36:56 -0500 Subject: [PATCH] Update docs for `save.md` --- commands/docs/save.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/commands/docs/save.md b/commands/docs/save.md index b2d60948665..a4b92c4f706 100644 --- a/commands/docs/save.md +++ b/commands/docs/save.md @@ -25,6 +25,7 @@ contributors: false - `--stderr, -e {path}`: the filename used to save stderr, only works with `-r` flag - `--raw, -r`: save file as raw binary - `--append, -a`: append input to the end of the file + - `--prepend, -P`: prepend input to the beginning of the file - `--force, -f`: overwrite the destination - `--progress, -p`: enable progress bar @@ -52,6 +53,12 @@ Append a string to the end of foo.txt ``` +Prepend a string to the beginning of foo.txt +```nu +> 'prepend me' | save --prepend foo.txt + +``` + Save a record to foo.json in the current directory ```nu > { a: 1, b: 2 } | save foo.json