bdy 1.17.16-dev → 1.17.17-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
CHANGED
|
@@ -10,13 +10,15 @@ const output_1 = __importDefault(require("../../output"));
|
|
|
10
10
|
const commandPackageDelete = (0, utils_1.newCommand)('delete', texts_1.DESC_COMMAND_PACKAGE_DELETE);
|
|
11
11
|
commandPackageDelete.alias('rm');
|
|
12
12
|
commandPackageDelete.option('-w, --workspace <domain>', texts_1.OPTION_REST_API_WORKSPACE);
|
|
13
|
+
commandPackageDelete.option('-p, --project <name>', texts_1.OPTION_REST_API_PROJECT);
|
|
13
14
|
commandPackageDelete.option('-f, --force', texts_1.OPTION_CONFIRM_FORCE);
|
|
14
15
|
commandPackageDelete.argument('<identifier>', texts_1.OPT_COMMAND_PACKAGE_IDENTIFIER);
|
|
15
16
|
commandPackageDelete.addHelpText('after', texts_1.EXAMPLE_PACKAGE_DELETE);
|
|
16
17
|
commandPackageDelete.action(async (identifier, options) => {
|
|
17
18
|
const workspace = input_1.default.restApiWorkspace(options.workspace);
|
|
19
|
+
const project = input_1.default.restApiProject(options.project);
|
|
18
20
|
const client = input_1.default.restApiTokenClient();
|
|
19
|
-
const data = await client.getPackageVersionByIdentifier(workspace,
|
|
21
|
+
const data = await client.getPackageVersionByIdentifier(workspace, project, identifier);
|
|
20
22
|
if (!data || !data.domain) {
|
|
21
23
|
output_1.default.exitError(texts_1.ERR_WORKSPACE_NOT_FOUND);
|
|
22
24
|
}
|