-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add a section to the documentation about setting options (#204)
- Loading branch information
1 parent
192b1e7
commit fdc8205
Showing
13 changed files
with
55 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
icon: material/package-variant-closed | ||
social: | ||
cards: false | ||
status: new | ||
--- | ||
|
||
# Installing the Binary | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
icon: material/cog-outline | ||
social: | ||
cards: false | ||
status: new | ||
--- | ||
|
||
# Different ways of customizing NSV | ||
|
||
`nsv` is designed to be config-free and requires minimal to no runtime options to release your software. If you need to set config, you have one of <u>three ways</u>, ordered from highest to lowest precedence. | ||
|
||
## CLI flags | ||
|
||
A CLI flag is the most explicit way to set an option and will always override the other two methods. | ||
|
||
```{ .sh .no-select } | ||
nsv next --format "{{.SemVer}}" --fix-shallow | ||
``` | ||
|
||
## Environment variables | ||
|
||
Environment variables provide great flexibility and support dynamic setting of options, for example, within a CI pipeline. | ||
|
||
```{ .sh .no-select } | ||
NSV_FORMAT="{{.SemVer}}" NSV_FIX_SHALLOW="true" nsv next | ||
``` | ||
|
||
## DotEnv file | ||
|
||
A `.env` file located in the root of a project is automatically loaded at runtime and injected into the `nsv` context. | ||
|
||
```{ .sh .no-select } | ||
NSV_FORMAT="{{.SemVer}}" | ||
NSV_FIX_SHALLOW="true" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
icon: material/sword | ||
social: | ||
cards: false | ||
status: new | ||
--- | ||
|
||
# Running with Dagger | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
icon: material/nix | ||
social: | ||
cards: false | ||
status: new | ||
--- | ||
|
||
# Running with Nix | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters