d8635fd4f3
The organization of packages underneath lib/ breaks the easy consumption of submodules, a la import {FileAsset} from "@pulumi/pulumi-fabric/asset"; We will go back to having everything hanging off the module root directory.
15 lines
399 B
TypeScript
15 lines
399 B
TypeScript
// Copyright 2016-2017, Pulumi Corporation. All rights reserved.
|
|
|
|
let config: {[key: string]: string} = {};
|
|
|
|
// setConfig sets a configuration variable.
|
|
export function setConfig(k: string, v: string): void {
|
|
config[k] = v;
|
|
}
|
|
|
|
// getConfig returns a configuration variable's value or undefined if it is unset.
|
|
export function getConfig(k: string): string | undefined {
|
|
return config[k];
|
|
}
|
|
|