Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x | import { defineCommand } from '../../lib/define-command.js';
import { Logger } from '../../logger.js';
import * as Application from '../../models/application.js';
import { appIdOrNameArg } from '../global.args.js';
import { aliasOption, appIdOrNameOption } from '../global.options.js';
export const serviceUnlinkAppCommand = defineCommand({
description: 'Remove an app from the dependencies',
since: '0.5.0',
options: {
alias: aliasOption,
app: appIdOrNameOption,
},
args: [appIdOrNameArg],
async handler(options, dependency) {
const { alias, app: appIdOrName } = options;
const { ownerId, appId } = await Application.resolveId(appIdOrName, alias);
await Application.unlink(ownerId, appId, dependency);
Logger.println(`App ${dependency.app_id || dependency.app_name} successfully unlinked`);
},
});
|