Browse Source

added util extention

pull/2/head
Nicolas Beaussart 7 years ago
parent
commit
1ce78fb340
No known key found for this signature in database GPG Key ID: 51D5A407BFCE64A9
  1. 12
      src/extensions/utils.ts

12
src/extensions/utils.ts

@ -0,0 +1,12 @@
import { GluegunToolbox } from 'gluegun'
module.exports = (toolbox: GluegunToolbox) => {
toolbox.utils = {
verboseDebug: (value: any, title?: string) => {
const o = toolbox.parameters.options;
if (Boolean(o.v || o.verbose)) {
toolbox.print.debug(value, title);
}
}
}
}
Loading…
Cancel
Save