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
16 lines
364 B
Go
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
|
|
}
|