gatsby-shopify-starter
Version:
A CLI for creating projects using the Gatsby-Shopify-Starter Boilerplate.
28 lines (25 loc) • 812 B
JavaScript
module.exports = (cmd, type) => {
const errors = {
"multi-word": `
_______________________________________
| |
| ERROR: |
| ${cmd.join(" ")} is not a valid |
| valid argument. Please use |
| hyphens, not spaces, for multi |
| word arguments. |
| |
| EXAMPLE: |
| ${cmd.join("-")} |
| |
|_______________________________________|
`
};
switch (type) {
case "multi word":
console.error(errors["multi-word"]);
break;
default:
console.log(`ERROR: Not a valid argument`);
}
};