cbf
Version:
A package for creating scripts to store and run your most commonly used CLI commands for a repo or just in general
17 lines (13 loc) • 391 B
JavaScript
const { Operations, OperationTypes } = require('./operations');
// Sort operations so they are always consistently displayed in the help menu
const SortedOperationTypes = {};
Object.keys(OperationTypes)
.sort()
.forEach(key => {
SortedOperationTypes[key] = OperationTypes[key];
});
module.exports = {
OperationTypes: SortedOperationTypes,
Operations,
};