node_modules/@adonisjs/ace/src/Command/index.js
/**
   * Returns a multiline string to be used as the help
   * output. This method does not write anything to
   * console and consumer to should do it
   * themselves.
   *
   * @method outputHelp
   * @static
   *
   * @param  {Boolean}  colorize - Whether or not colorize the output
   *
   * @return {String}
   */
Returns a multiline string to be used as the help
output. This method does not write anything to
console and consumer to should do it
themselves.

@method outputHelp
@static

@param  {Boolean}  colorize - Whether or not colorize the output

@return {String}
Returns a multiline string to be used as the help output . This method does not write anything to console and consumer to should do it themselves . @method outputHelp @static @param { Boolean } colorize - Whether or not colorize the output @return { String }
static outputHelp (colorize = process.env.NO_ANSI === 'false') {
    const ctx = new chalk.constructor({ enabled: colorize })
    const stringifiedArgs = this._stringifyArgs()
    const maxWidth = this.biggestArg()
    const strings = []
    strings.push(ctx.magenta.bold('Usage:'))
    const args = stringifiedArgs.length ? ` ${stringifiedArgs}` : ''
    strings.push(`  ${this.commandName}${args} [options]`)
    if (this.args.length) {
      strings.push(WHITE_SPACE)
      strings.push(ctx.magenta.bold('Arguments:'))
      _.each(this.args, (arg) => {
        strings.push(`  ${ctx.blue(_.padEnd(arg.name, maxWidth))} ${arg.description}`)
      })
    }
    if (this.options.length) {
      strings.push(WHITE_SPACE)
      strings.push(ctx.magenta.bold('Options:'))
      _.each(this.options, (option) => {
        strings.push(`  ${ctx.blue(_.padEnd(this._getArgOrOptionName(option), maxWidth))} ${option.description}`)
      })
    }
    if (this.description) {
      strings.push(WHITE_SPACE)
      strings.push(ctx.magenta.bold('About:'))
      strings.push(`  ${this.description}`)
    }
    strings.push(WHITE_SPACE)
    return strings.join('\n')
  }
static outputHelp ( colorize = process . env . NO_ANSI === 'false' ) { const ctx = new chalk . constructor ( { enabled : colorize } ) const stringifiedArgs = this . _stringifyArgs ( ) const maxWidth = this . biggestArg ( ) const strings = [ ] strings . push ( ctx . magenta . bold ( 'Usage:' ) ) const args = stringifiedArgs . length ? ` ${ stringifiedArgs } ` : '' strings . push ( ` ${ this . commandName } ${ args } ` ) if ( this . args . length ) { strings . push ( WHITE_SPACE ) strings . push ( ctx . magenta . bold ( 'Arguments:' ) ) _ . each ( this . args , ( arg ) => { strings . push ( ` ${ ctx . blue ( _ . padEnd ( arg . name , maxWidth ) ) } ${ arg . description } ` ) } ) } if ( this . options . length ) { strings . push ( WHITE_SPACE ) strings . push ( ctx . magenta . bold ( 'Options:' ) ) _ . each ( this . options , ( option ) => { strings . push ( ` ${ ctx . blue ( _ . padEnd ( this . _getArgOrOptionName ( option ) , maxWidth ) ) } ${ option . description } ` ) } ) } if ( this . description ) { strings . push ( WHITE_SPACE ) strings . push ( ctx . magenta . bold ( 'About:' ) ) strings . push ( ` ${ this . description } ` ) } strings . push ( WHITE_SPACE ) return strings . join ( '\n' ) }
Returns a multiline string to be used as the help
 output.
Returns a multiline string to be used as the help output .
/**
     * Push new lines to the strings array
     *
     * @type {Array}
     */ /**
     * Push the strings showing how to use the
     * command.
     *
     * @type {String}
     */ /**
     * Push arguments when defined
     */ /**
     * Push options when defined
     */ /**
     * Push description when defined
     */