Add template creation test, --skip-editor option (#11970)

* Add template creation test
* Added --skip-editor option to "spack create": normally
  "spack create" opens an editor for the user after generating a
  package file; when the --skip-editor option is used, "spack create"
  only generates the package file and does not open an editor
* Added --skip-editor option to bash completion
This commit is contained in:
Tamara Dahlgren
2019-07-12 11:22:09 -07:00
committed by Peter Scheibel
parent 505ad8960e
commit d615d0a1ec
3 changed files with 64 additions and 3 deletions

View File

@@ -352,7 +352,7 @@ function _spack_create {
if $list_options
then
compgen -W "-h --help --keep-stage -n --name -t --template -r --repo
-N --namespace -f --force" -- "$cur"
-N --namespace -f --force --skip-editor" -- "$cur"
fi
}