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) • 570 B
JavaScript
const { OperatingModes } = require('../../../constants');
const { CurrentOperatingModes } = require('../../../operating-modes');
const { Operation } = require('../operation');
/**
* Run the dry-run operation
*/
const run = () => {
CurrentOperatingModes.add(OperatingModes.DRY_RUN);
};
const operation = {
name: 'dry-run',
flag: 'R',
description: 'prints the command that would have been run to stdout',
args: [],
whitelist: ['run', 'json', 'documented', 'delete', 'delete-all'],
run,
};
module.exports = new Operation(operation);