@amplitude/ampli
Version:
Amplitude CLI
19 lines (18 loc) • 640 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const base_1 = require("../base");
const branch_1 = require("../actions/branch");
class Branch extends base_1.default {
async run() {
const { flags: branchFlags } = this.parse(Branch);
if (!await this.shouldBeInitialized(branchFlags)) {
return;
}
await new branch_1.default(branchFlags, {}, this.actionConfig(Branch.id)).run();
}
}
exports.default = Branch;
Branch.id = 'branch';
Branch.description = 'list all branches';
Branch.flags = Object.assign({}, base_1.default.commonFlagsWithToken);
Branch.args = [];