README
@shopbase-theme-cli/core
Export
variables, util, flags, errors, config, cli, inquirer, request, git, Command
Example
import {variables} from '@shopbase-theme/core'
console.log(variables.host)
Command Class
auth, request, cli, inquirer, util, variables, git
Example:
import Command from '@shopbase-theme/core'
class Example extends Command {
static description = 'Example Class'
static hidden = true
async run() {
const url = 'https://jsonplaceholder.typicode.com/todos/1'
const r: any = await this.request.get(url)
this.cli.warn('This is a warn')
this.cli.info(r)
}
}