Open aboodman opened 5 years ago
I forgot we already had this discussion:
https://github.com/attic-labs/noms/issues/1802 and https://github.com/attic-labs/noms/issues/2131.
Hm. I still find myself reaching for noms use
.
OK, reminding myself how config works, and the debate we had, I think maybe what I'm looking for is just:
# noms use /tmp/whatever
Wrote changes to ~/.nomsconfig
Default database now /tmp/whatever (previously /tmp/old-db)
# noms use
Currently using /tmp/whatever (see ~/.nomsconfig)
Stop using with `noms use --stop`
IOW, store in config file, not env variable.
Separately cli support for setting aliases would be cool.
I also have a bad feeling that the CLI is not consistent in using config, so there'd have to be an audit to make it consistent.
For a few reasons, I don't end up using
noms config
that much:I think I'd like to replace
noms config
withnoms use
. It would work like this:$NOMS_DATABASE
which is just a database spec. If present, any spec on the CLI that includes a database component can omit it and it will default to this value.noms use
which manipulates this environment variable as a convenienceHere a transcript of a sample usage: