Developers want to switch between multiple environments (e.g., production, staging, and local development environments) while performing their work. Environments are not simply independent; some environments need to be able to be shared between environments. For example, container images and repositories are often shared between environments.
Acceptance Criteria
The context show command displays a list of contexts. The current context is marked with *.
$ dacrane context show
* default
local
cloud
The context create command creates a context with the specified name.
$ dacrane context create [context_name]
The context switch command switches to the context with the specified name.
$ dacrane context switch [context_name]
The context delete command deletes the context with the specified name.
$ dacrane context delete [context_name]
The set command registers a variable in the current context.
$ dacrane set .env.yaml
The unset command removes variables in the current context.
User Story
Developers want to switch between multiple environments (e.g., production, staging, and local development environments) while performing their work. Environments are not simply independent; some environments need to be able to be shared between environments. For example, container images and repositories are often shared between environments.
Acceptance Criteria
The
context show
command displays a list of contexts. The current context is marked with*
.The
context create
command creates a context with the specified name.The
context switch
command switches to the context with the specified name.The
context delete
command deletes the context with the specified name.The
set
command registers a variable in the current context.The
unset
command removes variables in the current context.