pulumi/pkg/engine/config_list.go
Matt Ellis aa6c6d6617 Move some configuration logic into the CLI
The CLI is now responsible for actually displaying information and the
engine is only concerned with getting the configuration. As part of
this change, I've removed the display a single configuration value API
from the engine. It can now be done in terms of getting all the config
for an environment and selecting the value the user is interested in
2017-10-02 13:35:39 -07:00

16 lines
364 B
Go

// Copyright 2017, Pulumi Corporation. All rights reserved.
package engine
import (
"github.com/pulumi/pulumi/pkg/tokens"
)
func (eng *Engine) GetConfiguration(environment string) (map[tokens.ModuleMember]string, error) {
info, err := eng.initEnvCmdName(tokens.QName(environment), "")
if err != nil {
return nil, err
}
return info.Target.Config, nil
}