Using the active environment and checking the config before writing
Created by: nrichart
This PR allows to use the -e
option of spack
spack -e my_env write-spack-yaml ...
will write the spack.yaml
file in the environment directory
In adition the environment is validated against speck schemas