cbf
Version:
A package for creating scripts to store and run your most commonly used CLI commands for a repo or just in general
24 lines (19 loc) • 574 B
JavaScript
const { OperatingModes } = require('../../../constants');
const { CurrentOperatingModes } = require('../../../operating-modes');
const { Operation } = require('../operation');
/**
* Run the documented operation
*/
const run = () => {
CurrentOperatingModes.add(OperatingModes.RUNNING_WITH_DOCUMENTATION);
};
const operation = {
name: 'documented',
flag: 'd',
description: 'prepends the command to the questions when running a script',
args: [],
whitelist: ['run', 'json', 'dry-run'],
run,
};
module.exports = new Operation(operation);