No known key found for this signature in database
GPG Key ID: 51D5A407BFCE64A9
1 changed files with
0 additions and
26 deletions
-
src/extensions/cli-extension.ts
|
|
@ -1,26 +0,0 @@ |
|
|
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') |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
toolbox.utils = { |
|
|
|
|
|
verboseDebug: (value: any, title?: string) => { |
|
|
|
|
|
const o = toolbox.parameters.options; |
|
|
|
|
|
if (Boolean(o.v || o.verbose)) { |
|
|
|
|
|
toolbox.print.debug(value, title); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// enable this if you want to read configuration in from
|
|
|
|
|
|
// the current folder's package.json (in a "nbx" property),
|
|
|
|
|
|
// nbx.config.json, etc.
|
|
|
|
|
|
// toolbox.config = {
|
|
|
|
|
|
// ...toolbox.config,
|
|
|
|
|
|
// ...toolbox.config.loadConfig(process.cwd(), "nbx")
|
|
|
|
|
|
// }
|
|
|
|
|
|
} |
|
|
|