mirror of
https://github.com/nmattia/niv.git
synced 2024-09-19 11:27:40 +03:00
Update README
This commit is contained in:
parent
9a46895f2e
commit
c6ed6912a5
25
README.md
25
README.md
@ -37,7 +37,6 @@ Available commands:
|
||||
|
||||
```
|
||||
|
||||
|
||||
### Add
|
||||
|
||||
```
|
||||
@ -47,19 +46,24 @@ Examples:
|
||||
niv add NixOS/nixpkgs-channel -n nixpkgs -b nixos-18.09
|
||||
niv add my-package -v alpha-0.1 -t http://example.com/archive/<version>.zip
|
||||
|
||||
Usage: niv add PACKAGE ([-b|--branch BRANCH] | [-o|--owner OWNER] |
|
||||
[-r|--repo REPO] | [-v|--version VERSION] |
|
||||
[-a|--attribute KEY=VAL] | [-t|--template URL]) [-n|--name NAME]
|
||||
Usage: niv add [-n|--name NAME] PACKAGE ([-a|--attribute KEY=VAL] |
|
||||
[-b|--branch BRANCH] | [-o|--owner OWNER] | [-r|--repo REPO] |
|
||||
[-v|--version VERSION] | [-t|--template URL])
|
||||
Add dependency
|
||||
|
||||
Available options:
|
||||
-n,--name NAME Set the package name to <NAME>
|
||||
-a,--attribute KEY=VAL Set the package spec attribute <KEY> to <VAL>
|
||||
-b,--branch BRANCH Equivalent to --attribute branch=<BRANCH>
|
||||
-o,--owner OWNER Equivalent to --attribute owner=<OWNER>
|
||||
-r,--repo REPO Equivalent to --attribute repo=<REPO>
|
||||
-v,--version VERSION Equivalent to --attribute version=<VERSION>
|
||||
-t,--template URL Used during 'update' when building URL. Occurrences
|
||||
of <foo> are replaced with attribute 'foo'.
|
||||
-h,--help Show this help text
|
||||
|
||||
```
|
||||
|
||||
|
||||
### Update
|
||||
|
||||
```
|
||||
@ -69,12 +73,17 @@ Examples:
|
||||
niv update nixpkgs
|
||||
niv update my-package -v beta-0.2
|
||||
|
||||
Usage: niv update [PACKAGE] ([-b|--branch BRANCH] | [-o|--owner OWNER] |
|
||||
[-r|--repo REPO] | [-v|--version VERSION] |
|
||||
[-a|--attribute KEY=VAL] | [-t|--template URL])
|
||||
Usage: niv update [PACKAGE] ([-a|--attribute KEY=VAL] | [-b|--branch BRANCH] |
|
||||
[-o|--owner OWNER] | [-r|--repo REPO] | [-v|--version VERSION]
|
||||
| [-t|--template URL])
|
||||
Update dependencies
|
||||
|
||||
Available options:
|
||||
-a,--attribute KEY=VAL Set the package spec attribute <KEY> to <VAL>
|
||||
-b,--branch BRANCH Equivalent to --attribute branch=<BRANCH>
|
||||
-o,--owner OWNER Equivalent to --attribute owner=<OWNER>
|
||||
-r,--repo REPO Equivalent to --attribute repo=<REPO>
|
||||
-v,--version VERSION Equivalent to --attribute version=<VERSION>
|
||||
-t,--template URL Used during 'update' when building URL. Occurrences
|
||||
of <foo> are replaced with attribute 'foo'.
|
||||
-h,--help Show this help text
|
||||
|
@ -23,14 +23,12 @@ $ snack run -- <args>
|
||||
replace_niv_help
|
||||
```
|
||||
|
||||
|
||||
### Add
|
||||
|
||||
```
|
||||
replace_niv_add_help
|
||||
```
|
||||
|
||||
|
||||
### Update
|
||||
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user