diff options
author | Todd Gamblin <gamblin2@llnl.gov> | 2021-07-27 14:09:17 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-27 15:09:17 -0600 |
commit | c8efec02957b6381979a952156d8ef64fd792e3a (patch) | |
tree | c392f53334531a30180d52d1aba611b5d0e4c813 /share | |
parent | e5bbb6e5b4a1af25dd46101bfc044d04deb10cb5 (diff) | |
download | spack-c8efec02957b6381979a952156d8ef64fd792e3a.tar.gz spack-c8efec02957b6381979a952156d8ef64fd792e3a.tar.bz2 spack-c8efec02957b6381979a952156d8ef64fd792e3a.tar.xz spack-c8efec02957b6381979a952156d8ef64fd792e3a.zip |
`spack style`: add `--root` option (#25085)
This adds a `--root` option so that `spack style` can check style for
a spack instance other than its own.
We also change the inner workings of `spack style` so that `--config FILE`
(and similar options for the various tools) options are used. This ensures
that when `spack style` runs, it always uses the config from the running spack,
and does *not* pick up configuration from the external root.
- [x] add `--root` option to `spack style`
- [x] add `--config` (or similar) option when invoking style tools
- [x] add a test that verifies we can check an external instance
Diffstat (limited to 'share')
-rwxr-xr-x | share/spack/spack-completion.bash | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash index 44cc7945fd..bf2a488a85 100755 --- a/share/spack/spack-completion.bash +++ b/share/spack/spack-completion.bash @@ -1008,7 +1008,7 @@ _spack_find() { _spack_flake8() { if $list_options then - SPACK_COMPREPLY="-h --help -b --base -a --all -r --root-relative -U --no-untracked -f --fix --no-isort --no-flake8 --no-mypy --black" + SPACK_COMPREPLY="-h --help -b --base -a --all -r --root-relative -U --no-untracked -f --fix --no-isort --no-flake8 --no-mypy --black --root" else SPACK_COMPREPLY="" fi @@ -1614,7 +1614,7 @@ _spack_stage() { _spack_style() { if $list_options then - SPACK_COMPREPLY="-h --help -b --base -a --all -r --root-relative -U --no-untracked -f --fix --no-isort --no-flake8 --no-mypy --black" + SPACK_COMPREPLY="-h --help -b --base -a --all -r --root-relative -U --no-untracked -f --fix --no-isort --no-flake8 --no-mypy --black --root" else SPACK_COMPREPLY="" fi |