18 lines
536 B
TypeScript
18 lines
536 B
TypeScript
import { GluegunToolbox } from 'gluegun';
|
|
|
|
// add your CLI-specific functionality here, which will then be accessible
|
|
// to your commands
|
|
module.exports = (toolbox: GluegunToolbox) => {
|
|
toolbox.foo = () => {
|
|
toolbox.print.info('called foo extension');
|
|
};
|
|
|
|
// enable this if you want to read configuration in from
|
|
// the current folder's package.json (in a "pwcli" property),
|
|
// pwcli.config.json, etc.
|
|
// toolbox.config = {
|
|
// ...toolbox.config,
|
|
// ...toolbox.config.loadConfig("pwcli", process.cwd())
|
|
// }
|
|
};
|