Skip to content

Commit bf36359

Browse files
committed
chore(release): 1.1.5
1 parent 8419c92 commit bf36359

File tree

8 files changed

+19
-9
lines changed

8 files changed

+19
-9
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
### [1.1.5](https://github.com/boilingdata/boilingdata-bdcli/compare/v1.1.4...v1.1.5) (2024-11-05)
6+
57
### [1.1.4](https://github.com/boilingdata/boilingdata-bdcli/compare/v1.1.3...v1.1.4) (2024-05-09)
68

79
### [1.1.3](https://github.com/boilingdata/boilingdata-bdcli/compare/v1.1.2...v1.1.3) (2024-04-05)

dist/cjs/VERSION.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export declare const VERSION = "1.1.4";
1+
export declare const VERSION = "1.1.5";

dist/cjs/VERSION.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
"use strict";
22
Object.defineProperty(exports, "__esModule", { value: true });
33
exports.VERSION = void 0;
4-
exports.VERSION = "1.1.4";
4+
exports.VERSION = "1.1.5";

dist/cjs/bdcli/commands/sandbox/bdcli-sandbox-download.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ async function show(options, _command) {
3838
const filename = options.name + ".yaml";
3939
let fileAlreadyExists = false;
4040
try {
41-
if (await fs.lstat(filename)) {
41+
if (!options.stdout && (await fs.lstat(filename))) {
4242
fileAlreadyExists = true;
4343
}
4444
}
@@ -56,7 +56,10 @@ async function show(options, _command) {
5656
(0, spinner_util_js_1.updateSpinnerText)(`Downloading sandbox IaC template of ${options.name}`);
5757
const bdSandbox = new sandbox_js_1.BDSandbox({ logger, authToken: token });
5858
const template = await bdSandbox.downloadTemplate(options.name, options.version, options?.status ?? "uploaded");
59-
await fs.writeFile(filename, template);
59+
if (options.stdout)
60+
console.log(template);
61+
else
62+
await fs.writeFile(filename, template);
6063
(0, spinner_util_js_1.spinnerSuccess)();
6164
}
6265
catch (err) {
@@ -67,6 +70,7 @@ const program = new cmd.Command("bdcli sandbox download")
6770
.addOption(new cmd.Option("--name <templateName>", "template name from listing").makeOptionMandatory())
6871
.addOption(new cmd.Option("--status <status>", "Download 'uploaded' (default) or 'deployed' template"))
6972
.addOption(new cmd.Option("--version <version>", "Download specific version from listing"))
73+
.addOption(new cmd.Option("--stdout", "Spill out the template to stdout instead of writing to file"))
7074
.action(async (options, command) => await show(options, command));
7175
(async () => {
7276
await (0, options_util_js_1.addGlobalOptions)(program, logger);

dist/esm/VERSION.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export declare const VERSION = "1.1.4";
1+
export declare const VERSION = "1.1.5";

dist/esm/VERSION.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = "1.1.4";
1+
export const VERSION = "1.1.5";

dist/esm/bdcli/commands/sandbox/bdcli-sandbox-download.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ async function show(options, _command) {
1313
const filename = options.name + ".yaml";
1414
let fileAlreadyExists = false;
1515
try {
16-
if (await fs.lstat(filename)) {
16+
if (!options.stdout && (await fs.lstat(filename))) {
1717
fileAlreadyExists = true;
1818
}
1919
}
@@ -31,7 +31,10 @@ async function show(options, _command) {
3131
updateSpinnerText(`Downloading sandbox IaC template of ${options.name}`);
3232
const bdSandbox = new BDSandbox({ logger, authToken: token });
3333
const template = await bdSandbox.downloadTemplate(options.name, options.version, options?.status ?? "uploaded");
34-
await fs.writeFile(filename, template);
34+
if (options.stdout)
35+
console.log(template);
36+
else
37+
await fs.writeFile(filename, template);
3538
spinnerSuccess();
3639
}
3740
catch (err) {
@@ -42,6 +45,7 @@ const program = new cmd.Command("bdcli sandbox download")
4245
.addOption(new cmd.Option("--name <templateName>", "template name from listing").makeOptionMandatory())
4346
.addOption(new cmd.Option("--status <status>", "Download 'uploaded' (default) or 'deployed' template"))
4447
.addOption(new cmd.Option("--version <version>", "Download specific version from listing"))
48+
.addOption(new cmd.Option("--stdout", "Spill out the template to stdout instead of writing to file"))
4549
.action(async (options, command) => await show(options, command));
4650
(async () => {
4751
await addGlobalOptions(program, logger);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@boilingdata/boilingdata-bdcli",
3-
"version": "1.1.4",
3+
"version": "1.1.5",
44
"description": "BoilingData command-line client - bdcli",
55
"exports": {
66
"import": "./dist/esm/index.js",

0 commit comments

Comments
 (0)