Skip to content

Feature request: Support for NATS_CURRENT_CONTEXT_PATH #1660

Description

@mathroc

Proposed change

when set this would override where natscli is looking for the config file that holds the current context to the path specified by this env var instead of ~/.config/nats/context.txt

Use case

We deploy images that are mostly read only, they include some pre-defined contexts so we can't use nats context select, the only way is to set NATS_CONTEXT manually, that works but is a bit tedious and not persistent

Contribution

I never wrote anything in go but I may give it a try if this is likely to be accepted

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalEnhancement idea or proposal

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions