2017-12-08 10:28:04 +00:00
|
|
|
const chalk = require('chalk')
|
|
|
|
|
|
|
|
const DOCS_URL = chalk.green('https://thumbsup.github.io/docs')
|
|
|
|
const ISSUES_URL = chalk.green('https://github.com/thumbsup/thumbsup/issues')
|
2017-12-07 13:04:16 +00:00
|
|
|
|
|
|
|
exports.USAGE = () => `
|
|
|
|
Usages:
|
|
|
|
thumbsup [required] [options]
|
2018-05-14 20:09:40 +00:00
|
|
|
thumbsup --config config.json
|
2017-12-07 13:04:16 +00:00
|
|
|
`
|
|
|
|
|
|
|
|
exports.CONFIG_USAGE = () => `
|
|
|
|
The optional JSON config should contain a single object with one key
|
|
|
|
per argument, not including the leading "--". For example:
|
|
|
|
{ "sort-albums-by": "start-date" }
|
|
|
|
`
|
|
|
|
|
|
|
|
exports.SUCCESS = (stats) => `
|
|
|
|
Gallery generated successfully
|
|
|
|
${stats.albums} albums, ${stats.photos} photos, ${stats.videos} videos
|
|
|
|
`
|
|
|
|
|
|
|
|
exports.GREETING = () => `
|
|
|
|
┌──────────────────────────────────────────────────────────────────────────────┐
|
|
|
|
│ │
|
|
|
|
│ Thanks for using thumbsup! │
|
|
|
|
│ │
|
2017-12-11 10:56:51 +00:00
|
|
|
│ Don't forget to check out the docs at ${DOCS_URL}. │
|
2017-12-07 13:04:16 +00:00
|
|
|
│ │
|
|
|
|
│ When building a gallery, thumbsup reports anonymous stats such as the OS and │
|
|
|
|
│ gallery size. This is used to understand usage patterns & guide development │
|
2017-12-11 10:56:51 +00:00
|
|
|
│ effort. You can disable usage reporting by specifying --no-usage-stats. │
|
2017-12-07 13:04:16 +00:00
|
|
|
│ │
|
|
|
|
│ This welcome message will not be shown again for this gallery. │
|
|
|
|
│ Enjoy! │
|
|
|
|
│ │
|
|
|
|
└──────────────────────────────────────────────────────────────────────────────┘
|
|
|
|
`
|
|
|
|
|
|
|
|
exports.SORRY = () => `
|
|
|
|
┌──────────────────────────────────────────────────────────────────────────────┐
|
|
|
|
│ │
|
|
|
|
│ Something went wrong! │
|
|
|
|
│ │
|
|
|
|
│ An unexpected error occurred and the gallery didn't build successfully. │
|
|
|
|
│ This is most likely an edge-case that hasn't been tested before. │
|
|
|
|
│ │
|
|
|
|
│ To help improve thumbsup and hopefully resolve your problem, │
|
2017-12-08 10:28:04 +00:00
|
|
|
│ please raise an issue at ${ISSUES_URL}. │
|
2017-12-07 13:04:16 +00:00
|
|
|
│ │
|
|
|
|
└──────────────────────────────────────────────────────────────────────────────┘
|
|
|
|
`
|