UNPKG

@forwardslashns/fws-cli

Version:

CLI meant to work together with other Forwardslash boilerplates.

4 lines (3 loc) 200 B
export const getCommands = (cliCommands, packageJsonCommands, allowedCommands) => { return [...cliCommands.filter((command) => allowedCommands.includes(command.name)), ...packageJsonCommands]; };