mirror of
https://github.com/nushell/nushell
synced 2024-12-29 14:33:13 +00:00
5ca9e12b7f
* Remove EOL whitespace in files other than docs * Break paragraphs into lines See http://rhodesmill.org/brandon/2012/one-sentence-per-line/ for the rationale * Fix various typos * Remove EOL whitespace in docs/commands/*.md
627 B
627 B
inc
This command increments the value of variable by one.
Examples
> open rustfmt.toml
━━━━━━━━━
edition
─────────
2018
━━━━━━━━━
> open rustfmt.toml | inc edition
━━━━━━━━━
edition
─────────
2019
━━━━━━━━━
> open Cargo.toml | get package.version
0.1.3
> open Cargo.toml | inc package.version --major | get package.version
1.0.0
> open Cargo.toml | inc package.version --minor | get package.version
0.2.0
> open Cargo.toml | inc package.version --patch | get package.version
0.1.4