mylisabox/generator-lisa

View on GitHub
generators/plugin/arguments/index.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * Exports object that contains names of arguments as a key and their configuration objects as a value
 *
 * @example
 * export default {
 *   argumentName: {
 *     desc: 'Description for the argument',
 *     required: false,
 *     optional: true,
 *     type: String || Number || Array || Object,
 *     defaults: 'Default value for this argument',
 *     banner: 'String to show on usage notes'
 *   }
 * }
 */

module.exports = {
  'plugin-name': {
    type: String,
    required: true,
    desc: 'Plugin Name',
    banner: 'Plugin Name'
  }
}