mirror of
https://github.com/nix-community/home-manager
synced 2024-12-21 01:09:47 +01:00
parent
7c0dc519e1
commit
adaea605db
5 changed files with 20 additions and 3 deletions
|
@ -102,6 +102,10 @@
|
||||||
</group>
|
</group>
|
||||||
</arg>
|
</arg>
|
||||||
|
|
||||||
|
<arg>
|
||||||
|
--version
|
||||||
|
</arg>
|
||||||
|
|
||||||
<arg>
|
<arg>
|
||||||
<group choice="req">
|
<group choice="req">
|
||||||
<arg choice="plain">
|
<arg choice="plain">
|
||||||
|
@ -431,6 +435,16 @@
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term>
|
||||||
|
<option>--version</option>
|
||||||
|
</term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Prints the version number of the <command>home-manager</command> tool.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<option>-n</option>
|
<option>-n</option>
|
||||||
|
|
|
@ -293,7 +293,7 @@ _home-manager_completions ()
|
||||||
Options=( "-f" "--file" "-b" "-A" "-I" "-h" "--help" "-n" "--dry-run" "-v" \
|
Options=( "-f" "--file" "-b" "-A" "-I" "-h" "--help" "-n" "--dry-run" "-v" \
|
||||||
"--verbose" "--cores" "--debug" "--impure" "--keep-failed" \
|
"--verbose" "--cores" "--debug" "--impure" "--keep-failed" \
|
||||||
"--keep-going" "-j" "--max-jobs" "--no-substitute" "--no-out-link" \
|
"--keep-going" "-j" "--max-jobs" "--no-substitute" "--no-out-link" \
|
||||||
"--show-trace" "--substitute" "--builders")
|
"--show-trace" "--substitute" "--builders" "--version")
|
||||||
|
|
||||||
# ^ « home-manager »'s options.
|
# ^ « home-manager »'s options.
|
||||||
|
|
||||||
|
|
|
@ -43,11 +43,12 @@ complete -c home-manager -n "__fish_use_subcommand" -x -a "expire-generations" -
|
||||||
complete -c home-manager -F -s f -l "file" -d "The home configuration file"
|
complete -c home-manager -F -s f -l "file" -d "The home configuration file"
|
||||||
complete -c home-manager -x -s A -d "Select an expression in the configuration file"
|
complete -c home-manager -x -s A -d "Select an expression in the configuration file"
|
||||||
complete -c home-manager -F -s I -d "Add a path to the Nix expression search path"
|
complete -c home-manager -F -s I -d "Add a path to the Nix expression search path"
|
||||||
complete -c home-manager -F -l "flake" -d "Use home-manager configuration at specified flake-uri"
|
complete -c home-manager -F -l "flake" -d "Use Home Manager configuration at specified flake-uri"
|
||||||
complete -c home-manager -F -s b -d "Move existing files to new path rather than fail"
|
complete -c home-manager -F -s b -d "Move existing files to new path rather than fail"
|
||||||
complete -c home-manager -f -s v -l "verbose" -d "Verbose output"
|
complete -c home-manager -f -s v -l "verbose" -d "Verbose output"
|
||||||
complete -c home-manager -f -s n -l "dry-run" -d "Do a dry run, only prints what actions would be taken"
|
complete -c home-manager -f -s n -l "dry-run" -d "Do a dry run, only prints what actions would be taken"
|
||||||
complete -c home-manager -f -s h -l "help" -d "Print this help"
|
complete -c home-manager -f -s h -l "help" -d "Print this help"
|
||||||
|
complete -c home-manager -f -s h -l "version" -d "Print the Home Manager version"
|
||||||
|
|
||||||
complete -c home-manager -x -l "arg" -d "Override inputs passed to home-manager.nix"
|
complete -c home-manager -x -l "arg" -d "Override inputs passed to home-manager.nix"
|
||||||
complete -c home-manager -x -l "argstr" -d "Like --arg but the value is a string"
|
complete -c home-manager -x -l "argstr" -d "Like --arg but the value is a string"
|
||||||
|
|
|
@ -11,6 +11,7 @@ _arguments \
|
||||||
'--impure[impure]' \
|
'--impure[impure]' \
|
||||||
'--keep-failed[keep failed]' \
|
'--keep-failed[keep failed]' \
|
||||||
'--keep-going[keep going]' \
|
'--keep-going[keep going]' \
|
||||||
|
'--version[version]' \
|
||||||
'(-h --help)'{--help,-h}'[help]' \
|
'(-h --help)'{--help,-h}'[help]' \
|
||||||
'(-v --verbose)'{--verbose,-v}'[verbose]' \
|
'(-v --verbose)'{--verbose,-v}'[verbose]' \
|
||||||
'(-n --dry-run)'{--dry-run,-n}'[dry run]' \
|
'(-n --dry-run)'{--dry-run,-n}'[dry run]' \
|
||||||
|
|
|
@ -505,11 +505,12 @@ function doHelp() {
|
||||||
echo " -A ATTRIBUTE Optional attribute that selects a configuration"
|
echo " -A ATTRIBUTE Optional attribute that selects a configuration"
|
||||||
echo " expression in the configuration file."
|
echo " expression in the configuration file."
|
||||||
echo " -I PATH Add a path to the Nix expression search path."
|
echo " -I PATH Add a path to the Nix expression search path."
|
||||||
echo " --flake flake-uri Use home-manager configuration at flake-uri"
|
echo " --flake flake-uri Use Home Manager configuration at flake-uri"
|
||||||
echo " -b EXT Move existing files to new path rather than fail."
|
echo " -b EXT Move existing files to new path rather than fail."
|
||||||
echo " -v Verbose output"
|
echo " -v Verbose output"
|
||||||
echo " -n Do a dry run, only prints what actions would be taken"
|
echo " -n Do a dry run, only prints what actions would be taken"
|
||||||
echo " -h Print this help"
|
echo " -h Print this help"
|
||||||
|
echo " --version Print the Home Manager version"
|
||||||
echo
|
echo
|
||||||
echo "Options passed on to nix-build(1)"
|
echo "Options passed on to nix-build(1)"
|
||||||
echo
|
echo
|
||||||
|
|
Loading…
Reference in a new issue