UNPKG

projex

Version:
30 lines (29 loc) 1.17 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const core_1 = require("@oclif/core"); const api_1 = require("../../../api"); const commands_1 = require("../../../shared/constants/commands"); const conventional_1 = require("../../../modules/apps/git/setup/conventional"); const _shared_1 = require("../../../shared/index"); class Release extends core_1.Command { static description = 'Set up conventional commits with Husky and Commitlint for selected repositories (only for Git users)'; static examples = [ `${api_1.Colors.PINK(`${commands_1.CLI_NAME} git setup conventional`)}`, `${api_1.Colors.PINK(`${commands_1.CLI_NAME} git setup conventional -l`)}`, ]; static flags = { ..._shared_1.globalFlags, list: core_1.Flags.boolean({ description: 'List all projects to select for conventional commits setup', char: 'l', default: false, }), }; async run() { const { flags: { list }, } = await this.parse(Release); await (0, conventional_1.setupConventional)({ list, }); } } exports.default = Release;