Skip to content
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
Open
@aboodman

Description

@aboodman

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions