You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.
I think the implementation is similar to setting the cfg.CurrentContext in set_context.go.
^ Yes
btw what if the given context (<name>) is the one currently active (currentContext)?
do we return error, or treat it as success
layerform config use-context bar
currentContext: bar
contexts:
bar:
type: local
dir: test
^ We treat it as a success, just check that the given context exists, if it exists, set and save (don't care if it is already current), if it does not exist, then error.
Introduce a new command
layerform config use-context <name>
that will change thecurrent
selected context:For example, if we have a config file like this:
Current context is
foo
Running
layerform config use-context bar
, should set the current context tobar
, changing the config file to:The text was updated successfully, but these errors were encountered: