calibre
Version:
Calibre - Page speed performance testing with Google Lighthouse
18 lines (13 loc) • 514 B
JavaScript
import Configstore from 'configstore'
import chalk from 'chalk'
import logSymbols from 'log-symbols'
const config = new Configstore('calibre')
const main = async ({ token }) => {
config.set('token', token)
console.log(`${chalk.bold.green(`${logSymbols.success} API Token saved!`)}\n`)
}
const command = 'set <token>'
const describe = 'Store your API Token to use the CLI (saved in ~/.config/configstore/calibre.json).'
const handler = main
const builder = {}
export { command, describe, handler, builder }