This repository was archived by the owner on Aug 28, 2021. It is now read-only.
This repository was archived by the owner on Aug 28, 2021. It is now read-only.
Proposal: noms use
#3821
Open
Description
For a few reasons, I don't end up using noms config
that much:
- I can never remember the syntax and have to look it up each time
- I don't really need the dataset or aliasing features frequently, so their presence is conceptual overhead I have to digest every time
- I can't remember where the file is supposed to go
- There's no CLI support to just do it for me, which is where we put everything else
I think I'd like to replace noms config
with noms use
. It would work like this:
- Introduce an environment variable
$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. - As a convenience and to aid discovery, introduce
noms use
which manipulates this environment variable as a convenience
Here a transcript of a sample usage:
# noms use /tmp/mydb
Set environment variable $NOMS_DATABASE=/tmp/mydb
# noms use
Currently using $NOMS_DATABASE=/tmp/mydb
To stop using: `noms use --stop`, or remove the environment variable
Metadata
Metadata
Assignees
Labels
No labels