@afroze9/terrastudio-cli 0.48.2 → 0.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/cli.cjs +5 -5
- package/package.json +1 -1
package/bundle/cli.cjs
CHANGED
|
@@ -17358,7 +17358,7 @@ var init_schema51 = __esm({
|
|
|
17358
17358
|
}
|
|
17359
17359
|
}
|
|
17360
17360
|
],
|
|
17361
|
-
parentReference: { propertyKey: "
|
|
17361
|
+
parentReference: { propertyKey: "storage_account_name" },
|
|
17362
17362
|
handles: [],
|
|
17363
17363
|
outputs: [
|
|
17364
17364
|
{ key: "id", label: "Resource ID", terraformAttribute: "id" }
|
|
@@ -17381,8 +17381,8 @@ var init_hcl_generator51 = __esm({
|
|
|
17381
17381
|
generate(resource, context) {
|
|
17382
17382
|
const props = resource.properties;
|
|
17383
17383
|
const name = props["name"];
|
|
17384
|
-
const saRef = resource.references["
|
|
17385
|
-
const
|
|
17384
|
+
const saRef = resource.references["storage_account_name"];
|
|
17385
|
+
const saNameExpr = saRef ? context.getAttributeReference(saRef, "name") : '"<storage-account-name>"';
|
|
17386
17386
|
const dependsOn = [];
|
|
17387
17387
|
if (saRef) {
|
|
17388
17388
|
const saAddr = context.getTerraformAddress(saRef);
|
|
@@ -17393,7 +17393,7 @@ var init_hcl_generator51 = __esm({
|
|
|
17393
17393
|
const lines = [
|
|
17394
17394
|
`resource "azurerm_storage_table" "${resource.terraformName}" {`,
|
|
17395
17395
|
` name = ${nameExpr}`,
|
|
17396
|
-
`
|
|
17396
|
+
` storage_account_name = ${saNameExpr}`,
|
|
17397
17397
|
"}"
|
|
17398
17398
|
];
|
|
17399
17399
|
return [
|
|
@@ -29855,7 +29855,7 @@ function makeTerraformCommand() {
|
|
|
29855
29855
|
}
|
|
29856
29856
|
|
|
29857
29857
|
// dist/cli.js
|
|
29858
|
-
var version = true ? "0.
|
|
29858
|
+
var version = true ? "0.49.0" : "0.0.0-dev";
|
|
29859
29859
|
var program2 = new Command();
|
|
29860
29860
|
program2.name("tstudio").description("TerraStudio CLI \u2014 headless project manipulation and HCL generation").version(version);
|
|
29861
29861
|
program2.addCommand(makeProjectCommand());
|