Skip to content

Commit

Permalink
Add --dry-run completion to nix-build and nix-shell
Browse files Browse the repository at this point in the history
nix-build explicitly documents --dry-run in its --help, while nix-shell
passes it onto nix-store --realise.
  • Loading branch information
zakame committed Oct 2, 2020
1 parent fbbbe6d commit 6836195
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _nix-build
Expand Up @@ -16,7 +16,6 @@ local -a _nix_build_opts=(

# TODO: Undocumented args to possibly add
# --add-root
# --dry-run
# --check
# --quiet
# --command
Expand All @@ -28,5 +27,6 @@ local -a _nix_build_opts=(
_arguments \
$__nix_boilerplate_opts \
$__nix_common_opts \
$__nix_dry_run \
$_nix_build_opts \
'*:Paths:_nix_path'
1 change: 1 addition & 0 deletions _nix-shell
Expand Up @@ -28,6 +28,7 @@ done
_arguments \
$__nix_boilerplate_opts \
$__nix_common_opts \
$__nix_dry_run \
$_nix_shell_opts \
$norm_arguments \
- '(group)' \
Expand Down

0 comments on commit 6836195

Please sign in to comment.