mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 10:53:34 +03:00
66f1ddcbe9
- run `slimer fix package.json` to add a files array everywhere - manually update slimer-cli to have a files array for bin - manually update slimer to include commands or else this will break!! - update pretty-cli to use our standard /lib/ pattern - this means we only publish what we need to npm, and keeps things cleaner and safer
22 lines
655 B
JavaScript
22 lines
655 B
JavaScript
const chalk = require('chalk');
|
|
|
|
module.exports = {
|
|
// Usage: script [options] etc
|
|
usagePrefix: (str) => {
|
|
return chalk.yellow(str.slice(0, 6)) + '\n ' + str.slice(7);
|
|
},
|
|
// Options: Arguments: etc
|
|
group: str => chalk.yellow(str),
|
|
// --help etc
|
|
flags: str => chalk.green(str),
|
|
// [required] [boolean] etc
|
|
hints: str => chalk.dim(str),
|
|
// Use different style when a type is invalid
|
|
groupError: str => chalk.red(str),
|
|
flagsError: str => chalk.red(str),
|
|
descError: str => chalk.yellow(str),
|
|
hintsError: str => chalk.red(str),
|
|
// style error messages
|
|
messages: str => chalk.red(str)
|
|
};
|