You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

25 lines
557 B

const { commands } = require('./cli-flags');
const defaultCommands = {
init: 'init',
loader: 'generate-loader',
plugin: 'generate-plugin',
info: 'info',
migrate: 'migrate',
serve: 'serve',
};
// Contains an array of strings with commands and their aliases that the cli supports
const names = commands
.map(({ alias, name }) => {
if (alias) {
return [name, alias];
}
return [name];
})
.reduce((arr, val) => arr.concat(val), []);
module.exports = {
defaultCommands,
names,
};