SIOS-Technology-Inc / dacrane

"Dacrane" is a Delivery as Code (DaC) tool for deploying cloud infrastructures and applications anywhere.
Apache License 2.0
61 stars 1 forks source link

Environment isolation and context functions #6

Closed t-ikeda-sti closed 12 months ago

t-ikeda-sti commented 1 year ago

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 *.

$ 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.

$ dacrane unset
t-ikeda-sti commented 12 months ago

Implemented.