Skip to content

Commit 3c664a3

Browse files
authored
fix(files.md): override Cargo.toml in example (#1307)
- override existing `Cargo.toml` file with `-f` flag for `save` in example - Point out `inc` is available through the `nu_plugin_inc`
1 parent b8405c7 commit 3c664a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cookbook/files.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ Make the edit to the version number and save it.
2424
_Note: running this command should work but it will reorder the toml file alphabetically by section._
2525

2626
```nu
27-
open Cargo.toml | upsert package.version { |p| $p | get package.version | inc --patch } | save Cargo.toml
27+
open Cargo.toml | upsert package.version { |p| $p | get package.version | inc --patch } | save -f Cargo.toml
2828
```
2929

30+
Note: `inc` is available through the plugin `nu_plugin_inc`.
31+
3032
Output
3133
_none_
3234

0 commit comments

Comments
 (0)