bdy 1.16.29-dev → 1.16.30-dev
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/distTs/package.json +1 -1
- package/distTs/src/command/package/create.js +1 -0
- package/distTs/src/command/package/delete.js +3 -1
- package/distTs/src/command/package/download.js +1 -0
- package/distTs/src/command/package/publish.js +4 -3
- package/distTs/src/command/package/version/delete.js +1 -0
- package/distTs/src/command/package/version/get.js +1 -0
- package/distTs/src/command/package/version/list.js +1 -0
- package/distTs/src/command/pipeline/run.js +1 -0
- package/distTs/src/command/sandbox/cp.js +1 -0
- package/distTs/src/command/sandbox/create.js +1 -0
- package/distTs/src/command/sandbox/endpoint/add.js +1 -0
- package/distTs/src/command/sandbox/endpoint/delete.js +1 -0
- package/distTs/src/command/sandbox/endpoint/get.js +1 -0
- package/distTs/src/command/sandbox/endpoint/list.js +1 -0
- package/distTs/src/command/sandbox/endpoint.js +4 -0
- package/distTs/src/command/sandbox/exec/command.js +1 -0
- package/distTs/src/command/sandbox/exec/kill.js +1 -0
- package/distTs/src/command/sandbox/exec/list.js +1 -0
- package/distTs/src/command/sandbox/exec/logs.js +1 -0
- package/distTs/src/command/sandbox/exec/status.js +1 -0
- package/distTs/src/command/sandbox/exec.js +5 -0
- package/distTs/src/command/sandbox/snapshot/create.js +1 -0
- package/distTs/src/command/sandbox/snapshot/delete.js +1 -0
- package/distTs/src/command/sandbox/snapshot/get.js +1 -0
- package/distTs/src/command/sandbox/snapshot/list.js +2 -1
- package/distTs/src/command/sandbox/snapshot.js +4 -0
- package/distTs/src/texts.js +181 -2
- package/package.json +1 -1
package/distTs/package.json
CHANGED
|
@@ -20,6 +20,7 @@ commandPackageCreate.option('-t, --type <type>', texts_1.OPT_COMMAND_PACKAGE_TYP
|
|
|
20
20
|
commandPackageCreate.option('-b, --buddy', texts_1.OPTION_HTTP_AUTH_BUDDY);
|
|
21
21
|
commandPackageCreate.option('-a, --auth <user:pass>', texts_1.OPTION_HTTP_AUTH);
|
|
22
22
|
commandPackageCreate.argument('[name]', texts_1.OPT_COMMAND_PACKAGE_NAME);
|
|
23
|
+
commandPackageCreate.addHelpText('after', texts_1.EXAMPLE_PACKAGE_CREATE);
|
|
23
24
|
commandPackageCreate.action(async (name, options) => {
|
|
24
25
|
const workspace = input_1.default.restApiWorkspace(options.workspace);
|
|
25
26
|
const project = input_1.default.restApiProject(options.project, true);
|
|
@@ -15,6 +15,7 @@ commandPackageDelete.option('--region <region>', texts_1.OPTION_REST_API_REGION)
|
|
|
15
15
|
commandPackageDelete.option('-w, --workspace <domain>', texts_1.OPTION_REST_API_WORKSPACE);
|
|
16
16
|
commandPackageDelete.option('-f, --force', texts_1.OPTION_CONFIRM_FORCE);
|
|
17
17
|
commandPackageDelete.argument('<identifier>', texts_1.OPT_COMMAND_PACKAGE_IDENTIFIER);
|
|
18
|
+
commandPackageDelete.addHelpText('after', texts_1.EXAMPLE_PACKAGE_DELETE);
|
|
18
19
|
commandPackageDelete.action(async (identifier, options) => {
|
|
19
20
|
const workspace = input_1.default.restApiWorkspace(options.workspace);
|
|
20
21
|
const client = input_1.default.restApiTokenClient(options.api, options.region, options.token);
|
|
@@ -25,7 +26,8 @@ commandPackageDelete.action(async (identifier, options) => {
|
|
|
25
26
|
if (!data.pkg_id) {
|
|
26
27
|
output_1.default.exitError(texts_1.ERR_PACKAGE_NOT_FOUND);
|
|
27
28
|
}
|
|
28
|
-
const confirmed = options.force ||
|
|
29
|
+
const confirmed = options.force ||
|
|
30
|
+
(await output_1.default.confirm((0, texts_1.TXT_PACKAGE_DELETE_CONFIRM)(identifier)));
|
|
29
31
|
if (confirmed) {
|
|
30
32
|
await client.deletePackage(workspace, data.pkg_id);
|
|
31
33
|
output_1.default.exitSuccess(texts_1.TXT_PACKAGE_DELETED);
|
|
@@ -23,6 +23,7 @@ commandPackageDownload.option('-m, --merge', texts_1.OPTION_PACKAGE_DOWNLOAD_MER
|
|
|
23
23
|
commandPackageDownload.option('-r, --replace', texts_1.OPTION_PACKAGE_DOWNLOAD_REPLACE);
|
|
24
24
|
commandPackageDownload.argument('<identifier>', texts_1.OPTION_PACKAGE_ID);
|
|
25
25
|
commandPackageDownload.argument('<directory>', texts_1.OPTION_PACKAGE_DOWNLOAD_PATH);
|
|
26
|
+
commandPackageDownload.addHelpText('after', texts_1.EXAMPLE_PACKAGE_DOWNLOAD);
|
|
26
27
|
commandPackageDownload.action(async (id, path, options) => {
|
|
27
28
|
const client = input_1.default.restApiTokenClient(options.api, options.region, options.token);
|
|
28
29
|
const workspace = input_1.default.restApiWorkspace(options.workspace);
|
|
@@ -23,6 +23,7 @@ commandPackagePublish.option('-c, --create', texts_1.OPTION_PACKAGE_PUBLISH_CREA
|
|
|
23
23
|
commandPackagePublish.option('-f, --force', texts_1.OPTION_PACKAGE_PUBLISH_OVERWRITE_VERSION);
|
|
24
24
|
commandPackagePublish.argument('<identifier>', texts_1.OPTION_PACKAGE_ID);
|
|
25
25
|
commandPackagePublish.argument('<directory>', texts_1.OPTION_PACKAGE_PUBLISH_PATH);
|
|
26
|
+
commandPackagePublish.addHelpText('after', texts_1.EXAMPLE_PACKAGE_PUBLISH);
|
|
26
27
|
commandPackagePublish.action(async (id, path, options) => {
|
|
27
28
|
let dirPath = input_1.default.resolvePath(path);
|
|
28
29
|
const workspace = input_1.default.restApiWorkspace(options.workspace);
|
|
@@ -48,13 +49,13 @@ commandPackagePublish.action(async (id, path, options) => {
|
|
|
48
49
|
type: utils_1.PACKAGE_TYPE.FILE,
|
|
49
50
|
scope: utils_1.PACKAGE_SCOPE.WORKSPACE,
|
|
50
51
|
authorization: {
|
|
51
|
-
type: utils_1.PACKAGE_AUTH_TYPE.BUDDY
|
|
52
|
-
}
|
|
52
|
+
type: utils_1.PACKAGE_AUTH_TYPE.BUDDY,
|
|
53
|
+
},
|
|
53
54
|
};
|
|
54
55
|
if (project) {
|
|
55
56
|
data.scope = utils_1.PACKAGE_SCOPE.PROJECT;
|
|
56
57
|
data.project = {
|
|
57
|
-
name: project
|
|
58
|
+
name: project,
|
|
58
59
|
};
|
|
59
60
|
}
|
|
60
61
|
const d = await client.postPackage(workspace, data);
|
|
@@ -17,6 +17,7 @@ commandPackageVersionDelete.option('-p, --project <name>', texts_1.OPTION_REST_A
|
|
|
17
17
|
commandPackageVersionDelete.argument('<identifier>', texts_1.OPT_COMMAND_PACKAGE_IDENTIFIER);
|
|
18
18
|
commandPackageVersionDelete.option('-f, --force', texts_1.OPTION_CONFIRM_FORCE);
|
|
19
19
|
commandPackageVersionDelete.argument('<version>', texts_1.OPT_COMMAND_PACKAGE_VERSION);
|
|
20
|
+
commandPackageVersionDelete.addHelpText('after', texts_1.EXAMPLE_PACKAGE_VERSION_DELETE);
|
|
20
21
|
commandPackageVersionDelete.action(async (identifier, version, options) => {
|
|
21
22
|
const workspace = input_1.default.restApiWorkspace(options.workspace);
|
|
22
23
|
const project = input_1.default.restApiProject(options.project, true);
|
|
@@ -15,6 +15,7 @@ commandPackageVersionGet.option('-w, --workspace <domain>', texts_1.OPTION_REST_
|
|
|
15
15
|
commandPackageVersionGet.option('-p, --project <name>', texts_1.OPTION_REST_API_PROJECT);
|
|
16
16
|
commandPackageVersionGet.argument('<identifier>', texts_1.OPT_COMMAND_PACKAGE_IDENTIFIER);
|
|
17
17
|
commandPackageVersionGet.argument('<version>', texts_1.OPT_COMMAND_PACKAGE_VERSION);
|
|
18
|
+
commandPackageVersionGet.addHelpText('after', texts_1.EXAMPLE_PACKAGE_VERSION_GET);
|
|
18
19
|
commandPackageVersionGet.action(async (identifier, version, options) => {
|
|
19
20
|
const workspace = input_1.default.restApiWorkspace(options.workspace);
|
|
20
21
|
const project = input_1.default.restApiProject(options.project, true);
|
|
@@ -17,6 +17,7 @@ commandPackageVersionList.option('--page <number>', texts_1.OPTION_REST_API_PAGE
|
|
|
17
17
|
commandPackageVersionList.option('--per-page <number>', texts_1.OPTION_REST_API_PER_PAGE, '10');
|
|
18
18
|
commandPackageVersionList.alias('ls');
|
|
19
19
|
commandPackageVersionList.argument('<identifier>', texts_1.OPT_COMMAND_PACKAGE_IDENTIFIER);
|
|
20
|
+
commandPackageVersionList.addHelpText('after', texts_1.EXAMPLE_PACKAGE_VERSION_LIST);
|
|
20
21
|
commandPackageVersionList.action(async (identifier, options) => {
|
|
21
22
|
const page = input_1.default.restApiPage(options.page);
|
|
22
23
|
const perPage = input_1.default.restApiPerPage(options.perPage);
|
|
@@ -29,6 +29,7 @@ commandPipelineRun.option('--action <actions...>', texts_1.OPTION_PIPELINE_RUN_A
|
|
|
29
29
|
commandPipelineRun.option('--wait [minutes]', texts_1.OPTION_PIPELINE_RUN_WAIT);
|
|
30
30
|
commandPipelineRun.argument('<identifier>', texts_1.OPTION_PIPELINE_RUN_ARGUMENT);
|
|
31
31
|
commandPipelineRun.usage('<identifier> [options]');
|
|
32
|
+
commandPipelineRun.addHelpText('after', texts_1.EXAMPLE_PIPELINE_RUN);
|
|
32
33
|
commandPipelineRun.action(async (identifier, options) => {
|
|
33
34
|
const workspace = input_1.default.restApiWorkspace(options.workspace);
|
|
34
35
|
const project = input_1.default.restApiProject(options.project);
|
|
@@ -22,6 +22,7 @@ commandSandboxCp.option('-m, --merge', texts_1.OPTION_SANDBOX_CP_DOWNLOAD_MERGE)
|
|
|
22
22
|
commandSandboxCp.option('-r, --replace', texts_1.OPTION_SANDBOX_CP_DOWNLOAD_REPLACE);
|
|
23
23
|
commandSandboxCp.argument('<source>', texts_1.OPTION_SANDBOX_CP_SOURCE);
|
|
24
24
|
commandSandboxCp.argument('<destination>', texts_1.OPTION_SANDBOX_CP_DEST);
|
|
25
|
+
commandSandboxCp.addHelpText('after', texts_1.EXAMPLE_SANDBOX_CP);
|
|
25
26
|
const upload = async (client, workspace, project, source, destination) => {
|
|
26
27
|
const { sourcePath, sourceStats } = input_1.default.restApiSandboxUploadSourcePath(source);
|
|
27
28
|
const { identifier, remotePath } = input_1.default.restApiSandboxUploadDestinationPath(destination);
|
|
@@ -41,6 +41,7 @@ commandSandboxCreate.option('--app-type <type>', texts_1.OPTION_SANDBOX_APP_TYPE
|
|
|
41
41
|
commandSandboxCreate.option('--tag <tags...>', texts_1.OPTION_SANDBOX_TAGS);
|
|
42
42
|
commandSandboxCreate.option('--wait-for-running [seconds]', texts_1.OPTION_SANDBOX_WAIT_RUNNING);
|
|
43
43
|
commandSandboxCreate.option('--wait-for-configured [seconds]', texts_1.OPTION_SANDBOX_WAIT_CONFIGURED);
|
|
44
|
+
commandSandboxCreate.addHelpText('after', texts_1.EXAMPLE_SANDBOX_CREATE);
|
|
44
45
|
commandSandboxCreate.action(async (options) => {
|
|
45
46
|
const workspace = input_1.default.restApiWorkspace(options.workspace);
|
|
46
47
|
const project = input_1.default.restApiProject(options.project);
|
|
@@ -10,6 +10,7 @@ const input_1 = __importDefault(require("../../../input"));
|
|
|
10
10
|
const logger_1 = __importDefault(require("../../../logger"));
|
|
11
11
|
const commandSandboxEndpointAdd = (0, utils_1.getBasicCommandSandboxEndpoint)('add', texts_1.DESC_COMMAND_SANDBOX_ENDPOINT_ADD);
|
|
12
12
|
commandSandboxEndpointAdd.alias('create');
|
|
13
|
+
commandSandboxEndpointAdd.addHelpText('after', `\nEXAMPLES:${texts_1.EXAMPLE_SANDBOX_ENDPOINT_CREATE}`);
|
|
13
14
|
commandSandboxEndpointAdd.action(async (identifier, options) => {
|
|
14
15
|
const workspace = input_1.default.restApiWorkspace(options.workspace);
|
|
15
16
|
const project = input_1.default.restApiProject(options.project);
|
|
@@ -17,6 +17,7 @@ commandSandboxEndpointDelete.option('-p, --project <name>', texts_1.OPTION_REST_
|
|
|
17
17
|
commandSandboxEndpointDelete.option('-f, --force', texts_1.OPTION_CONFIRM_FORCE);
|
|
18
18
|
commandSandboxEndpointDelete.argument('<identifier>', texts_1.OPTION_SANDBOX_IDENTIFIER);
|
|
19
19
|
commandSandboxEndpointDelete.argument('<endpoint-name>', texts_1.OPTION_SANDBOX_ENDPOINT_NAME_ARG);
|
|
20
|
+
commandSandboxEndpointDelete.addHelpText('after', `\nEXAMPLES:${texts_1.EXAMPLE_SANDBOX_ENDPOINT_DELETE}`);
|
|
20
21
|
commandSandboxEndpointDelete.action(async (identifier, endpointName, options) => {
|
|
21
22
|
const workspace = input_1.default.restApiWorkspace(options.workspace);
|
|
22
23
|
const project = input_1.default.restApiProject(options.project);
|
|
@@ -15,6 +15,7 @@ commandSandboxEndpointGet.option('-w, --workspace <domain>', texts_1.OPTION_REST
|
|
|
15
15
|
commandSandboxEndpointGet.option('-p, --project <name>', texts_1.OPTION_REST_API_PROJECT);
|
|
16
16
|
commandSandboxEndpointGet.argument('<identifier>', texts_1.OPTION_SANDBOX_IDENTIFIER);
|
|
17
17
|
commandSandboxEndpointGet.argument('<endpoint-name>', texts_1.OPTION_SANDBOX_ENDPOINT_NAME_ARG);
|
|
18
|
+
commandSandboxEndpointGet.addHelpText('after', `\nEXAMPLES:${texts_1.EXAMPLE_SANDBOX_ENDPOINT_GET}`);
|
|
18
19
|
commandSandboxEndpointGet.action(async (identifier, endpointName, options) => {
|
|
19
20
|
const workspace = input_1.default.restApiWorkspace(options.workspace);
|
|
20
21
|
const project = input_1.default.restApiProject(options.project);
|
|
@@ -15,6 +15,7 @@ commandSandboxEndpointList.option('--region <region>', texts_1.OPTION_REST_API_R
|
|
|
15
15
|
commandSandboxEndpointList.option('-w, --workspace <domain>', texts_1.OPTION_REST_API_WORKSPACE);
|
|
16
16
|
commandSandboxEndpointList.option('-p, --project <name>', texts_1.OPTION_REST_API_PROJECT);
|
|
17
17
|
commandSandboxEndpointList.argument('<identifier>', texts_1.OPTION_SANDBOX_IDENTIFIER);
|
|
18
|
+
commandSandboxEndpointList.addHelpText('after', `\nEXAMPLES:${texts_1.EXAMPLE_SANDBOX_ENDPOINT_LIST}`);
|
|
18
19
|
commandSandboxEndpointList.action(async (identifier, options) => {
|
|
19
20
|
const workspace = input_1.default.restApiWorkspace(options.workspace);
|
|
20
21
|
const project = input_1.default.restApiProject(options.project);
|
|
@@ -15,4 +15,8 @@ commandSandboxEndpoint.addCommand(list_1.default);
|
|
|
15
15
|
commandSandboxEndpoint.addCommand(get_1.default);
|
|
16
16
|
commandSandboxEndpoint.addCommand(add_1.default);
|
|
17
17
|
commandSandboxEndpoint.addCommand(delete_1.default);
|
|
18
|
+
commandSandboxEndpoint.addHelpText('after', `\nEXAMPLES:${texts_1.EXAMPLE_SANDBOX_ENDPOINT_CREATE}
|
|
19
|
+
${texts_1.EXAMPLE_SANDBOX_ENDPOINT_DELETE}
|
|
20
|
+
${texts_1.EXAMPLE_SANDBOX_ENDPOINT_GET}
|
|
21
|
+
${texts_1.EXAMPLE_SANDBOX_ENDPOINT_LIST}`);
|
|
18
22
|
exports.default = commandSandboxEndpoint;
|
|
@@ -18,6 +18,7 @@ commandSandboxExecCommand.option('--runtime <runtime>', texts_1.OPTION_SANDBOX_R
|
|
|
18
18
|
commandSandboxExecCommand.option('--wait', texts_1.OPTION_SANDBOX_WAIT);
|
|
19
19
|
commandSandboxExecCommand.argument('<identifier>', texts_1.OPTION_SANDBOX_IDENTIFIER);
|
|
20
20
|
commandSandboxExecCommand.argument('<command>');
|
|
21
|
+
commandSandboxExecCommand.addHelpText('after', `\nEXAMPLES:${texts_1.EXAMPLE_SANDBOX_EXEC_COMMAND}`);
|
|
21
22
|
commandSandboxExecCommand.action(async (identifier, command, options) => {
|
|
22
23
|
output_1.default.handleSignals();
|
|
23
24
|
const workspace = input_1.default.restApiWorkspace(options.workspace);
|
|
@@ -16,6 +16,7 @@ commandSandboxExecKill.option('-p, --project <name>', texts_1.OPTION_REST_API_PR
|
|
|
16
16
|
commandSandboxExecKill.option('-f, --force', texts_1.OPTION_CONFIRM_FORCE);
|
|
17
17
|
commandSandboxExecKill.argument('<identifier>', texts_1.OPTION_SANDBOX_IDENTIFIER);
|
|
18
18
|
commandSandboxExecKill.argument('<command-id>', texts_1.OPTION_SANDBOX_COMMAND_ID);
|
|
19
|
+
commandSandboxExecKill.addHelpText('after', `\nEXAMPLES:${texts_1.EXAMPLE_SANDBOX_EXEC_KILL}`);
|
|
19
20
|
commandSandboxExecKill.action(async (identifier, commandId, options) => {
|
|
20
21
|
const workspace = input_1.default.restApiWorkspace(options.workspace);
|
|
21
22
|
const project = input_1.default.restApiProject(options.project);
|
|
@@ -15,6 +15,7 @@ commandSandboxExecList.option('--region <region>', texts_1.OPTION_REST_API_REGIO
|
|
|
15
15
|
commandSandboxExecList.option('-w, --workspace <domain>', texts_1.OPTION_REST_API_WORKSPACE);
|
|
16
16
|
commandSandboxExecList.option('-p, --project <name>', texts_1.OPTION_REST_API_PROJECT);
|
|
17
17
|
commandSandboxExecList.argument('<identifier>', texts_1.OPTION_SANDBOX_IDENTIFIER);
|
|
18
|
+
commandSandboxExecList.addHelpText('after', `\nEXAMPLES:${texts_1.EXAMPLE_SANDBOX_EXEC_LIST}`);
|
|
18
19
|
commandSandboxExecList.action(async (identifier, options) => {
|
|
19
20
|
const workspace = input_1.default.restApiWorkspace(options.workspace);
|
|
20
21
|
const project = input_1.default.restApiProject(options.project);
|
|
@@ -16,6 +16,7 @@ commandSandboxExecLogs.option('-p, --project <name>', texts_1.OPTION_REST_API_PR
|
|
|
16
16
|
commandSandboxExecLogs.option('--wait', texts_1.OPTION_SANDBOX_WAIT);
|
|
17
17
|
commandSandboxExecLogs.argument('<identifier>', texts_1.OPTION_SANDBOX_IDENTIFIER);
|
|
18
18
|
commandSandboxExecLogs.argument('<command-id>', texts_1.OPTION_SANDBOX_COMMAND_ID);
|
|
19
|
+
commandSandboxExecLogs.addHelpText('after', `\nEXAMPLES:${texts_1.EXAMPLE_SANDBOX_EXEC_LOGS}`);
|
|
19
20
|
commandSandboxExecLogs.action(async (identifier, commandId, options) => {
|
|
20
21
|
output_1.default.handleSignals();
|
|
21
22
|
const workspace = input_1.default.restApiWorkspace(options.workspace);
|
|
@@ -15,6 +15,7 @@ commandSandboxExecStatus.option('-w, --workspace <domain>', texts_1.OPTION_REST_
|
|
|
15
15
|
commandSandboxExecStatus.option('-p, --project <name>', texts_1.OPTION_REST_API_PROJECT);
|
|
16
16
|
commandSandboxExecStatus.argument('<identifier>', texts_1.OPTION_SANDBOX_IDENTIFIER);
|
|
17
17
|
commandSandboxExecStatus.argument('<command-id>', texts_1.OPTION_SANDBOX_COMMAND_ID);
|
|
18
|
+
commandSandboxExecStatus.addHelpText('after', `\nEXAMPLES:${texts_1.EXAMPLE_SANDBOX_EXEC_STATUS}`);
|
|
18
19
|
commandSandboxExecStatus.action(async (identifier, commandId, options) => {
|
|
19
20
|
const workspace = input_1.default.restApiWorkspace(options.workspace);
|
|
20
21
|
const project = input_1.default.restApiProject(options.project);
|
|
@@ -16,4 +16,9 @@ commandSandboxExec.addCommand(status_1.default);
|
|
|
16
16
|
commandSandboxExec.addCommand(kill_1.default);
|
|
17
17
|
commandSandboxExec.addCommand(list_1.default);
|
|
18
18
|
commandSandboxExec.addCommand(logs_1.default);
|
|
19
|
+
commandSandboxExec.addHelpText('after', `\nEXAMPLES:${texts_1.EXAMPLE_SANDBOX_EXEC_COMMAND}
|
|
20
|
+
${texts_1.EXAMPLE_SANDBOX_EXEC_KILL}
|
|
21
|
+
${texts_1.EXAMPLE_SANDBOX_EXEC_LIST}
|
|
22
|
+
${texts_1.EXAMPLE_SANDBOX_EXEC_LOGS}
|
|
23
|
+
${texts_1.EXAMPLE_SANDBOX_EXEC_STATUS}`);
|
|
19
24
|
exports.default = commandSandboxExec;
|
|
@@ -18,6 +18,7 @@ commandSandboxSnapshotCreate.option('-p, --project <name>', texts_1.OPTION_REST_
|
|
|
18
18
|
commandSandboxSnapshotCreate.option('-n, --name <name>', texts_1.OPTION_SANDBOX_SNAPSHOT_NAME);
|
|
19
19
|
commandSandboxSnapshotCreate.argument('<identifier>', texts_1.OPTION_SANDBOX_IDENTIFIER);
|
|
20
20
|
commandSandboxSnapshotCreate.option('--wait [seconds]', texts_1.OPTION_SANDBOX_WAIT);
|
|
21
|
+
commandSandboxSnapshotCreate.addHelpText('after', `\nEXAMPLES:${texts_1.EXAMPLE_SANDBOX_SNAPSHOT_CREATE}`);
|
|
21
22
|
commandSandboxSnapshotCreate.action(async (identifier, options) => {
|
|
22
23
|
const workspace = input_1.default.restApiWorkspace(options.workspace);
|
|
23
24
|
const project = input_1.default.restApiProject(options.project);
|
|
@@ -17,6 +17,7 @@ commandSandboxSnapshotDelete.option('-p, --project <name>', texts_1.OPTION_REST_
|
|
|
17
17
|
commandSandboxSnapshotDelete.option('-f, --force', texts_1.OPTION_CONFIRM_FORCE);
|
|
18
18
|
commandSandboxSnapshotDelete.argument('<identifier>', texts_1.OPTION_SANDBOX_IDENTIFIER);
|
|
19
19
|
commandSandboxSnapshotDelete.argument('<snapshot-name>', texts_1.OPTION_SANDBOX_SNAPSHOT_NAME_ARG);
|
|
20
|
+
commandSandboxSnapshotDelete.addHelpText('after', `\nEXAMPLES:${texts_1.EXAMPLE_SANDBOX_SNAPSHOT_DELETE}`);
|
|
20
21
|
commandSandboxSnapshotDelete.action(async (identifier, snapshotName, options) => {
|
|
21
22
|
const workspace = input_1.default.restApiWorkspace(options.workspace);
|
|
22
23
|
const project = input_1.default.restApiProject(options.project);
|
|
@@ -15,6 +15,7 @@ commandSandboxSnapshotGet.option('-w, --workspace <domain>', texts_1.OPTION_REST
|
|
|
15
15
|
commandSandboxSnapshotGet.option('-p, --project <name>', texts_1.OPTION_REST_API_PROJECT);
|
|
16
16
|
commandSandboxSnapshotGet.argument('<identifier>', texts_1.OPTION_SANDBOX_IDENTIFIER);
|
|
17
17
|
commandSandboxSnapshotGet.argument('<snapshot-name>', texts_1.OPTION_SANDBOX_SNAPSHOT_NAME_ARG);
|
|
18
|
+
commandSandboxSnapshotGet.addHelpText('after', `\nEXAMPLES:${texts_1.EXAMPLE_SANDBOX_SNAPSHOT_GET}`);
|
|
18
19
|
commandSandboxSnapshotGet.action(async (identifier, snapshotName, options) => {
|
|
19
20
|
const workspace = input_1.default.restApiWorkspace(options.workspace);
|
|
20
21
|
const project = input_1.default.restApiProject(options.project);
|
|
@@ -15,6 +15,7 @@ commandSandboxSnapshotList.option('--region <region>', texts_1.OPTION_REST_API_R
|
|
|
15
15
|
commandSandboxSnapshotList.option('-w, --workspace <domain>', texts_1.OPTION_REST_API_WORKSPACE);
|
|
16
16
|
commandSandboxSnapshotList.option('-p, --project <name>', texts_1.OPTION_REST_API_PROJECT);
|
|
17
17
|
commandSandboxSnapshotList.argument('[identifier]', texts_1.OPTION_SANDBOX_IDENTIFIER);
|
|
18
|
+
commandSandboxSnapshotList.addHelpText('after', `\nEXAMPLES:${texts_1.EXAMPLE_SANDBOX_SNAPSHOT_LIST}`);
|
|
18
19
|
commandSandboxSnapshotList.action(async (identifier, options) => {
|
|
19
20
|
const workspace = input_1.default.restApiWorkspace(options.workspace);
|
|
20
21
|
const project = input_1.default.restApiProject(options.project);
|
|
@@ -43,7 +44,7 @@ commandSandboxSnapshotList.action(async (identifier, options) => {
|
|
|
43
44
|
snapshot.name || '-',
|
|
44
45
|
snapshot.status || '-',
|
|
45
46
|
snapshot.create_date || '-',
|
|
46
|
-
snapshot.html_url || '-'
|
|
47
|
+
snapshot.html_url || '-',
|
|
47
48
|
]);
|
|
48
49
|
}
|
|
49
50
|
output_1.default.table(data);
|
|
@@ -15,4 +15,8 @@ commandSandboxSnapshot.addCommand(list_1.default);
|
|
|
15
15
|
commandSandboxSnapshot.addCommand(create_1.default);
|
|
16
16
|
commandSandboxSnapshot.addCommand(get_1.default);
|
|
17
17
|
commandSandboxSnapshot.addCommand(delete_1.default);
|
|
18
|
+
commandSandboxSnapshot.addHelpText('after', `\nEXAMPLES:${texts_1.EXAMPLE_SANDBOX_SNAPSHOT_CREATE}
|
|
19
|
+
${texts_1.EXAMPLE_SANDBOX_SNAPSHOT_DELETE}
|
|
20
|
+
${texts_1.EXAMPLE_SANDBOX_SNAPSHOT_GET}
|
|
21
|
+
${texts_1.EXAMPLE_SANDBOX_SNAPSHOT_LIST}`);
|
|
18
22
|
exports.default = commandSandboxSnapshot;
|
package/distTs/src/texts.js
CHANGED
|
@@ -11,7 +11,7 @@ exports.DESC_COMMAND_SANDBOX_LIST = exports.DESC_COMMAND_SANDBOX_CREATE = export
|
|
|
11
11
|
exports.DESC_COMMAND_SANDBOX_SNAPSHOT_CREATE = exports.DESC_COMMAND_SANDBOX_SNAPSHOT_LIST = exports.DESC_COMMAND_SANDBOX_SNAPSHOT = exports.TXT_SANDBOX_COMMAND_KILLED = exports.OPTION_SANDBOX_COMMAND_KILL_CONFIRM = exports.OPTION_SANDBOX_COMMAND_ID = exports.DESC_COMMAND_SANDBOX_EXEC_KILL = exports.DESC_COMMAND_SANDBOX_EXEC_LOGS = exports.DESC_COMMAND_SANDBOX_EXEC_STATUS = exports.DESC_COMMAND_SANDBOX_EXEC_LIST = exports.TXT_SANDBOX_WAITING_START = exports.TXT_SANDBOX_WAITING_STOP = exports.TXT_SANDBOX_WAITING_SETUP = exports.TXT_SANDBOX_WAITING_RUNNING = exports.TXT_SANDBOX_STOPPED = exports.TXT_SANDBOX_STARTED = exports.TXT_SANDBOX_DESTROYED = exports.TXT_SANDBOX_DESTROY_CONFIRM = exports.TXT_SANDBOX_CREATED = exports.TXT_SANDBOX_CREATING = exports.OPTION_SANDBOX_WAIT = exports.OPTION_SANDBOX_WAIT_CONFIGURED = exports.OPTION_SANDBOX_WAIT_RUNNING = exports.ERR_SANDBOX_STOP_FAILED = exports.ERR_SANDBOX_NO_COMMANDS = exports.ERR_SANDBOX_RUNNING_FAILED = exports.ERR_SANDBOX_STOP_TIMEOUT = exports.ERR_SANDBOX_SNAPSHOT_TIMEOUT = exports.ERR_SANDBOX_RUNNING_TIMEOUT = exports.ERR_SANDBOX_SETUP_TIMEOUT = exports.ERR_SANDBOX_SETUP_FAILED = exports.ERR_SANDBOX_INVALID_RESOURCES = exports.ERR_SANDBOX_NOT_FOUND = exports.OPTION_SANDBOX_RUNTIME = exports.OPTION_SANDBOX_APP_TYPE = exports.OPTION_SANDBOX_APP_DIR = exports.OPTION_SANDBOX_RUN_COMMAND = exports.OPTION_SANDBOX_TAGS = exports.OPTION_SANDBOX_INSTALL_COMMANDS = exports.OPTION_SANDBOX_RESOURCES = exports.OPTION_SANDBOX_OS = exports.OPTION_SANDBOX_NAME = exports.OPTION_SANDBOX_IDENTIFIER = exports.DESC_COMMAND_SANDBOX_EXEC = exports.DESC_COMMAND_SANDBOX_STATUS = exports.DESC_COMMAND_SANDBOX_RESTART = exports.DESC_COMMAND_SANDBOX_STOP = exports.DESC_COMMAND_SANDBOX_START = exports.DESC_COMMAND_SANDBOX_DESTROY = exports.DESC_COMMAND_SANDBOX_GET = void 0;
|
|
12
12
|
exports.TXT_SANDBOX_EXEC_SUCCESS = exports.TXT_SANDBOX_EXEC_BACKGROUND = exports.TXT_SANDBOX_EXEC_ID = exports.ERR_SANDBOX_CP_INVALID_SOURCE = exports.ERR_SANDBOX_CP_INVALID_DEST = exports.ERR_SANDBOX_CP_REPLACE = exports.ERR_SANDBOX_CP_MKDIR = exports.ERR_SANDBOX_CP_NOT_EMPTY_DIR = exports.ERR_SANDBOX_CP_READDIR = exports.ERR_SANDBOX_CP_DEST_NOT_FOLDER = exports.ERR_SANDBOX_CP_SOURCE_NOT_FOUND = exports.TXT_SANDBOX_CP_DONE = exports.TXT_SANDBOX_CP_PROGRESS = exports.TXT_SANDBOX_UNZIPPING_COUNT = exports.TXT_SANDBOX_UNZIP_DONE = exports.TXT_SANDBOX_UNZIP = exports.TXT_SANDBOX_CP_DOWNLOAD_DONE = exports.TXT_SANDBOX_CP_DOWNLOAD = exports.OPTION_SANDBOX_CP_DOWNLOAD_REPLACE = exports.OPTION_SANDBOX_CP_DOWNLOAD_MERGE = exports.OPTION_SANDBOX_CP_DEST = exports.OPTION_SANDBOX_CP_SOURCE = exports.DESC_COMMAND_SANDBOX_CP = exports.ERR_SANDBOX_ENDPOINTS_NOT_FOUND = exports.ERR_SANDBOX_ENDPOINT_NOT_FOUND = exports.ERR_SANDBOX_ENDPOINT_EXISTS = exports.TXT_SANDBOX_ENDPOINT_DELETED = exports.TXT_SANDBOX_ENDPOINT_DELETE_CONFIRM = exports.TXT_SANDBOX_ENDPOINT_ADDED = exports.OPTION_SANDBOX_ENDPOINT_TYPE = exports.OPTION_SANDBOX_ENDPOINT_PORT = exports.OPTION_SANDBOX_ENDPOINT_NAME_ARG = exports.OPTION_SANDBOX_ENDPOINT_NAME = exports.DESC_COMMAND_SANDBOX_ENDPOINT_DELETE = exports.DESC_COMMAND_SANDBOX_ENDPOINT_ADD = exports.DESC_COMMAND_SANDBOX_ENDPOINT_GET = exports.DESC_COMMAND_SANDBOX_ENDPOINT_LIST = exports.DESC_COMMAND_SANDBOX_ENDPOINT = exports.ERR_SANDBOX_SNAPSHOTS_NOT_FOUND = exports.ERR_SANDBOX_SNAPSHOT_NOT_FOUND = exports.ERR_SANDBOX_SNAPSHOT_FAILED = exports.TXT_SANDBOX_SNAPSHOT_WAITING = exports.TXT_SANDBOX_SNAPSHOT_DELETE_CONFIRM = exports.TXT_SANDBOX_SNAPSHOT_DELETED = exports.TXT_SANDBOX_SNAPSHOT_CREATED = exports.OPTION_SANDBOX_FROM_SNAPSHOT = exports.OPTION_SANDBOX_SNAPSHOT_NAME_ARG = exports.OPTION_SANDBOX_SNAPSHOT_NAME = exports.DESC_COMMAND_SANDBOX_SNAPSHOT_DELETE = exports.DESC_COMMAND_SANDBOX_SNAPSHOT_GET = void 0;
|
|
13
13
|
exports.TXT_PACKAGE_DELETED = exports.ERR_COMMAND_PACKAGE_TYPE = exports.OPT_COMMAND_PACKAGE_VERSION = exports.OPT_COMMAND_PACKAGE_IDENTIFIER = exports.OPT_COMMAND_PACKAGE_CREATE_IDENTIFIER = exports.OPT_COMMAND_PACKAGE_NAME = exports.OPT_COMMAND_PACKAGE_TYPE = exports.DESC_COMMAND_PACKAGE_CREATE = exports.DESC_COMMAND_PACKAGE_GET = exports.TXT_PACKAGE_DOCKER_LOGIN_FAILED = exports.TXT_PACKAGE_DOCKER_LOGIN_SUCCESS = exports.TXT_PACKAGE_VERSION_DELETE_CONFIRM = exports.TXT_PACKAGE_DELETE_CONFIRM = exports.DESC_COMMAND_PACKAGE_DELETE = exports.ERR_COMMAND_PACKAGE_NO_PROJECTS = exports.DESC_COMMAND_PACKAGE_VERSION_GET = exports.DESC_COMMAND_PACKAGE_VERSION_LIST = exports.DESC_COMMAND_PACKAGE_VERSION_DELETE = exports.DESC_COMMAND_PACKAGE_DOCKER_LOGIN = exports.DESC_COMMAND_PACKAGE_LIST = exports.DESC_COMMAND_PACKAGE_VERSION = exports.ERR_API_MESSAGE_REPLACER = exports.ERR_LOGIN_INVALID_BASE_URL = exports.ERR_LOGIN_NO_PROJECT_FOUND = exports.ERR_LOGIN_NO_WORKSPACE_FOUND = exports.ERR_LOGIN_NO_WORKSPACES = exports.ERR_LOGIN_HTTP_SUCCESS = exports.ERR_LOGIN_HTTP_FAILED = exports.TXT_LOGIN_OAUTH = exports.ERR_LOGIN_HTTP_SERVER_PORT_TAKEN = exports.TXT_LOGIN_SUCCESS = exports.TXT_LOGIN_SELECT_WORKSPACE = exports.TXT_LOGIN_ENTER_BASE_URL = exports.TXT_LOGIN_SELECT_REGION = exports.TXT_WORKSPACE_NONE = exports.TXT_WORKSPACE_SET_SUCCESS = exports.ARG_COMMAND_WORKSPACE = exports.DESC_COMMAND_WORKSPACE_GET = exports.DESC_COMMAND_WORKSPACE_SET = exports.DESC_COMMAND_WORKSPACE_LIST = exports.DESC_COMMAND_WORKSPACE = exports.TXT_LOGOUT_SUCCESS = exports.DESC_COMMAND_LOGOUT = exports.DESC_COMMAND_LOGIN = exports.ERR_WHOAMI_LOGOUT = exports.TXT_WHOAMI_NO_PROJECT = exports.TXT_WHOAMI_NO_WORKSPACE = exports.DESC_COMMAND_WHOAMI = exports.TXT_SANDBOX_EXEC_FAILED = exports.TXT_SANDBOX_EXEC_INPROGRESS = void 0;
|
|
14
|
-
exports.TXT_PROJECT_NONE = exports.ERR_PROJECT_NO_PROJECTS = exports.TXT_LOGIN_SELECT_PROJECT = exports.TXT_PROJECT_SET_CLEARED = exports.TXT_PROJECT_SET_SUCCESS = exports.DESC_COMMAND_PROJECT_GET = exports.ARG_COMMAND_PROJECT_NAME = exports.DESC_COMMAND_PROJECT_SET = exports.DESC_COMMAND_PROJECT_LIST = exports.DESC_COMMAND_PROJECT = exports.TXT_PACKAGE_VERSION_DOWNLOAD = exports.TXT_PACKAGE_PUBLISH = exports.TXT_PACKAGE_CREATED = exports.TXT_PACKAGE_VERSION_DELETED = void 0;
|
|
14
|
+
exports.EXAMPLE_PACKAGE_VERSION_DELETE = exports.EXAMPLE_PACKAGE_VERSION_GET = exports.EXAMPLE_PACKAGE_VERSION_LIST = exports.EXAMPLE_PACKAGE_CREATE = exports.EXAMPLE_PACKAGE_DELETE = exports.EXAMPLE_PACKAGE_DOWNLOAD = exports.EXAMPLE_PACKAGE_PUBLISH = exports.EXAMPLE_PIPELINE_RUN = exports.EXAMPLE_SANDBOX_ENDPOINT_LIST = exports.EXAMPLE_SANDBOX_ENDPOINT_GET = exports.EXAMPLE_SANDBOX_ENDPOINT_DELETE = exports.EXAMPLE_SANDBOX_ENDPOINT_CREATE = exports.EXAMPLE_SANDBOX_SNAPSHOT_LIST = exports.EXAMPLE_SANDBOX_SNAPSHOT_GET = exports.EXAMPLE_SANDBOX_SNAPSHOT_DELETE = exports.EXAMPLE_SANDBOX_SNAPSHOT_CREATE = exports.EXAMPLE_SANDBOX_EXEC_STATUS = exports.EXAMPLE_SANDBOX_EXEC_LOGS = exports.EXAMPLE_SANDBOX_EXEC_LIST = exports.EXAMPLE_SANDBOX_EXEC_KILL = exports.EXAMPLE_SANDBOX_EXEC_COMMAND = exports.EXAMPLE_SANDBOX_CREATE = exports.EXAMPLE_SANDBOX_CP = exports.TXT_PROJECT_NONE = exports.ERR_PROJECT_NO_PROJECTS = exports.TXT_LOGIN_SELECT_PROJECT = exports.TXT_PROJECT_SET_CLEARED = exports.TXT_PROJECT_SET_SUCCESS = exports.DESC_COMMAND_PROJECT_GET = exports.ARG_COMMAND_PROJECT_NAME = exports.DESC_COMMAND_PROJECT_SET = exports.DESC_COMMAND_PROJECT_LIST = exports.DESC_COMMAND_PROJECT = exports.TXT_PACKAGE_VERSION_DOWNLOAD = exports.TXT_PACKAGE_PUBLISH = exports.TXT_PACKAGE_CREATED = exports.TXT_PACKAGE_VERSION_DELETED = void 0;
|
|
15
15
|
const utils_1 = require("./utils");
|
|
16
16
|
exports.ERR_REST_API_GENERAL_ERROR = 'Something went wrong';
|
|
17
17
|
exports.ERR_REST_API_NOT_RESPONDING = 'Api endpoint not responding. Try again later...';
|
|
@@ -605,7 +605,7 @@ exports.ERR_SANDBOX_ENDPOINTS_NOT_FOUND = 'No endpoints found';
|
|
|
605
605
|
// Sandbox cp command
|
|
606
606
|
exports.DESC_COMMAND_SANDBOX_CP = 'Copy files/directories to sandbox';
|
|
607
607
|
exports.OPTION_SANDBOX_CP_SOURCE = 'Upload: local file (directory) path to upload. Download: sandbox remote file (directory): sandbox-id:/path to download';
|
|
608
|
-
exports.OPTION_SANDBOX_CP_DEST = 'Upload: Sandbox remote
|
|
608
|
+
exports.OPTION_SANDBOX_CP_DEST = 'Upload: Sandbox remote directory: sandbox-id:/path to upload to. Download: local directory path to download to';
|
|
609
609
|
exports.OPTION_SANDBOX_CP_DOWNLOAD_MERGE = 'Merge contents of the destination directory with sandbox content';
|
|
610
610
|
exports.OPTION_SANDBOX_CP_DOWNLOAD_REPLACE = 'Replace contents of the destination directory with sandbox content';
|
|
611
611
|
exports.TXT_SANDBOX_CP_DOWNLOAD = 'Downloading...';
|
|
@@ -766,3 +766,182 @@ exports.TXT_PROJECT_SET_CLEARED = 'Project cleared';
|
|
|
766
766
|
exports.TXT_LOGIN_SELECT_PROJECT = 'Select project (optional):';
|
|
767
767
|
exports.ERR_PROJECT_NO_PROJECTS = 'No projects found in this workspace';
|
|
768
768
|
exports.TXT_PROJECT_NONE = 'No project configured. Run "bdy login" or "bdy project set" first.';
|
|
769
|
+
// Examples
|
|
770
|
+
exports.EXAMPLE_SANDBOX_CP = `
|
|
771
|
+
EXAMPLES:
|
|
772
|
+
# copy file from sandbox to new local directory:
|
|
773
|
+
bdy sb cp sandbox-identifier:/path/to/file /path/to/dir
|
|
774
|
+
|
|
775
|
+
# copy contents of directory from sandbox to existing local directory merging it contents:
|
|
776
|
+
bdy sb cp sandbox-identifier:/path/to/dir /path/to/dir --merge
|
|
777
|
+
|
|
778
|
+
# copy contents of directory from sandbox to existing local directory replacing it contents:
|
|
779
|
+
bdy sb co sandbox-identifier:/path/to/dir /path/to/dir --replace
|
|
780
|
+
|
|
781
|
+
# copy local file to sandbox directory:
|
|
782
|
+
bdy sb cp /path/to/file sandbox-identifier:/path/to/dir
|
|
783
|
+
|
|
784
|
+
# copy contents of local directory to sandbox directory:
|
|
785
|
+
bdy sb cp /path/to/dir sandbox-identifier:/path/to/dir`;
|
|
786
|
+
exports.EXAMPLE_SANDBOX_CREATE = `
|
|
787
|
+
EXAMPLES:
|
|
788
|
+
# create ubuntu 22.04 sandbox with name and wait for start:
|
|
789
|
+
bdy sb create -n "name" --os ubuntu:22.04 --wait-for-running
|
|
790
|
+
|
|
791
|
+
# create sandbox with identifier, run install commands and wait for start & commands to complete:
|
|
792
|
+
bdy sb create -i "test" --install-command "apt-get update && apt-get install curl -y" --wait-for-configure
|
|
793
|
+
|
|
794
|
+
# create sandbox with custom resources and tag it:
|
|
795
|
+
bdy sb create --resources 4x8 --tag "tag1" --tag "tag2"`;
|
|
796
|
+
exports.EXAMPLE_SANDBOX_EXEC_COMMAND = `
|
|
797
|
+
# ran command in sandbox:
|
|
798
|
+
bdy sb exec command sandbox-identifier "ls -la"
|
|
799
|
+
|
|
800
|
+
# ran command in sandbox and wait for it to complete:
|
|
801
|
+
bdy sb exec command sandbox-identifier "sleep 10" --wait`;
|
|
802
|
+
exports.EXAMPLE_SANDBOX_EXEC_KILL = `
|
|
803
|
+
# kill command running in sandbox:
|
|
804
|
+
bdy sb exec kill sandbox-identifier command-id
|
|
805
|
+
|
|
806
|
+
# kill command running in sandbox and automatically confirm killing:
|
|
807
|
+
bdy sb exec kill sandbox-identifier command-id -f`;
|
|
808
|
+
exports.EXAMPLE_SANDBOX_EXEC_LIST = `
|
|
809
|
+
# list commands running in sandbox:
|
|
810
|
+
bdy sb exec ls sandbox-identifier
|
|
811
|
+
|
|
812
|
+
# list commands running in sandbox in different project:
|
|
813
|
+
bdy sb exec ls sandbox-identifier -p project`;
|
|
814
|
+
exports.EXAMPLE_SANDBOX_EXEC_LOGS = `
|
|
815
|
+
# show logs from command:
|
|
816
|
+
bdy sb exec logs sandbox-identifier command-id
|
|
817
|
+
|
|
818
|
+
# show logs from command and wait for it to complete:
|
|
819
|
+
bdy sb exec logs sandbox-identifier command-id --wait`;
|
|
820
|
+
exports.EXAMPLE_SANDBOX_EXEC_STATUS = `
|
|
821
|
+
# show status of command:
|
|
822
|
+
bdy sb exec status sandbox-identifier command-id
|
|
823
|
+
|
|
824
|
+
# show status of command in sandbox from another workspace:
|
|
825
|
+
bdy sb exec status sandbox-identifier command-id -w workspace -p project`;
|
|
826
|
+
exports.EXAMPLE_SANDBOX_SNAPSHOT_CREATE = `
|
|
827
|
+
# create snapshot of sandbox with name:
|
|
828
|
+
bdy sb snap create sandbox-identifier -n "my-snapshot"
|
|
829
|
+
|
|
830
|
+
# create snapshot of sandbox and wait for it to complete:
|
|
831
|
+
bdy sb snap create sandbox-identifier --wait`;
|
|
832
|
+
exports.EXAMPLE_SANDBOX_SNAPSHOT_DELETE = `
|
|
833
|
+
# delete snapshot of sandbox:
|
|
834
|
+
bdy sb snap rm sandbox-identifier my-snapshot
|
|
835
|
+
|
|
836
|
+
# delete snapshot of sandbox and automatically confirm deletion:
|
|
837
|
+
bdy sb snap rm sandbox-identifier my-snapshot -f`;
|
|
838
|
+
exports.EXAMPLE_SANDBOX_SNAPSHOT_GET = `
|
|
839
|
+
# get snapshot info:
|
|
840
|
+
bdy sb snap get sandbox-identifier my-snapshot
|
|
841
|
+
|
|
842
|
+
# get snapshot info from sandbox in another project:
|
|
843
|
+
bdy sb snap get sandbox-identifier my-snapshot -p project`;
|
|
844
|
+
exports.EXAMPLE_SANDBOX_SNAPSHOT_LIST = `
|
|
845
|
+
# list snapshots of sandbox:
|
|
846
|
+
bdy sb snap ls sandbox-identifier
|
|
847
|
+
|
|
848
|
+
# list snapshots in default project:
|
|
849
|
+
bdy sb snap ls`;
|
|
850
|
+
exports.EXAMPLE_SANDBOX_ENDPOINT_CREATE = `
|
|
851
|
+
# create http endpoint on port 80
|
|
852
|
+
bdy sb ep create sandbox-identifier -e 80
|
|
853
|
+
|
|
854
|
+
# create http server and serve files from sandbox directory:
|
|
855
|
+
bdy sb ep create sandbox-identifier -s /path/to/dir
|
|
856
|
+
|
|
857
|
+
# create tcp endpoint on port 22 with name:
|
|
858
|
+
bdy sb ep create sandbox-identifier -t TCP -e 22 -n test`;
|
|
859
|
+
exports.EXAMPLE_SANDBOX_ENDPOINT_DELETE = `
|
|
860
|
+
# delete sandbox endpoint:
|
|
861
|
+
bdy sb ep rm sandbox-identifier test
|
|
862
|
+
|
|
863
|
+
# delete sandbox endpoint in another project and automatically confirm deletion:
|
|
864
|
+
bdy sb ep rm sandbox-identifier test -p project -f`;
|
|
865
|
+
exports.EXAMPLE_SANDBOX_ENDPOINT_GET = `
|
|
866
|
+
# get sandbox endpoint:
|
|
867
|
+
bdy sb ep get sandbox-identifier test
|
|
868
|
+
|
|
869
|
+
# get sandbox endpoint in another project:
|
|
870
|
+
bdy sb ep get sandbox-identifier test -p project`;
|
|
871
|
+
exports.EXAMPLE_SANDBOX_ENDPOINT_LIST = `
|
|
872
|
+
# list sandbox endpoints:
|
|
873
|
+
bdy sb ep ls sandbox-identifier
|
|
874
|
+
|
|
875
|
+
# list sandbox endpoints in another project:
|
|
876
|
+
bdy sb ep ls sandbox-identifier -p project`;
|
|
877
|
+
exports.EXAMPLE_PIPELINE_RUN = `
|
|
878
|
+
EXAMPLES:
|
|
879
|
+
# run pipeline with high priority and upload everything from scratch
|
|
880
|
+
bdy pip run pipeline-identifier --priority HIGH -f
|
|
881
|
+
|
|
882
|
+
# run pipeline without cache and wait for execution to complete
|
|
883
|
+
bdy pip run pipeline-identifier --wait -c
|
|
884
|
+
|
|
885
|
+
# run pipeline and pass custom variables to execution
|
|
886
|
+
bdy pip run pipeline-identifier -v key:val -v a:b`;
|
|
887
|
+
exports.EXAMPLE_PACKAGE_PUBLISH = `
|
|
888
|
+
EXAMPLES:
|
|
889
|
+
# publish new version of file package:
|
|
890
|
+
bdy pkg pub package-identifier@version /path/to/dir
|
|
891
|
+
|
|
892
|
+
# create new file package:
|
|
893
|
+
bdy pkg pub package-identifier --create
|
|
894
|
+
|
|
895
|
+
# overwrite existing version:
|
|
896
|
+
bdy pkg pub package-identifier@version /path/to/dir -f`;
|
|
897
|
+
exports.EXAMPLE_PACKAGE_DOWNLOAD = `
|
|
898
|
+
EXAMPLES:
|
|
899
|
+
# download file package version to local directory:
|
|
900
|
+
bdy pkg dd package-identifier@version /path/to/dir
|
|
901
|
+
|
|
902
|
+
# download latest file package version and replace contents of existing local directory:
|
|
903
|
+
bdy pkg dd package-identifier /path/to/dir --replace
|
|
904
|
+
|
|
905
|
+
# download file package version and merge it with existing local directory:
|
|
906
|
+
bdy pkg dd package-identifier@version /path/to/dir --merge`;
|
|
907
|
+
exports.EXAMPLE_PACKAGE_DELETE = `
|
|
908
|
+
EXAMPLES:
|
|
909
|
+
# delete package:
|
|
910
|
+
bdy pkg rm package-identifier
|
|
911
|
+
|
|
912
|
+
# delete package and automatically confirm deletion:
|
|
913
|
+
bdy pkg rm package-identifier -f`;
|
|
914
|
+
exports.EXAMPLE_PACKAGE_CREATE = `
|
|
915
|
+
EXAMPLES:
|
|
916
|
+
# create file package with name:
|
|
917
|
+
bdy pkg create test
|
|
918
|
+
|
|
919
|
+
# create file package with buddy authorization and identifier
|
|
920
|
+
bdy pkg create test -b -i package-identifier
|
|
921
|
+
|
|
922
|
+
# create file package with basic authorization
|
|
923
|
+
bdy pkg create -a user:pass
|
|
924
|
+
|
|
925
|
+
# create docker containers package
|
|
926
|
+
bdy pkg create registry -t CONTAINER`;
|
|
927
|
+
exports.EXAMPLE_PACKAGE_VERSION_LIST = `
|
|
928
|
+
EXAMPLES:
|
|
929
|
+
# list package versions:
|
|
930
|
+
bdy pkg ver ls package-identifier
|
|
931
|
+
|
|
932
|
+
# list 20 package versions from page 2:
|
|
933
|
+
bdy pkg ver ls package-identifier --page 2 --per-page 20`;
|
|
934
|
+
exports.EXAMPLE_PACKAGE_VERSION_GET = `
|
|
935
|
+
EXAMPLES:
|
|
936
|
+
# get package version:
|
|
937
|
+
bdy pkg ver get package-identifier version
|
|
938
|
+
|
|
939
|
+
# get package version in another project:
|
|
940
|
+
bdy pkg ver get package-identifier version -p project`;
|
|
941
|
+
exports.EXAMPLE_PACKAGE_VERSION_DELETE = `
|
|
942
|
+
EXAMPLES:
|
|
943
|
+
# delete package version:
|
|
944
|
+
bdy pkg ver rm package-identifier version
|
|
945
|
+
|
|
946
|
+
# delete package version and automatically confirm deletion:
|
|
947
|
+
bdy pkg ver rm package-identifier version -f`;
|