text: const { startService } = require('KegUtils/services')
  const { mergeTaskOptions } = require('KegUtils/task/options/mergeTaskOptions')
  
  /**
   * Start a tap with docker-compose
   * @param {Object} args - arguments passed from the runTask method
   * @param {string} args.command - Initial command being run
   * @param {Array} args.options - arguments passed from the command line
   * @param {Object} args.tasks - All registered tasks of the CLI
   * @param {Object} globalConfig - Global config object for the keg-cli
   *
   * @returns {void}
   */
  const startTap = async (args) => {
    const { params: { tap } } = args
  
    return startService(args, {
      tap,
      context: 'tap',
      container: 'tap',
    })
  
  }
  module.exports = {
    start: {
      name: 'start',
      alias: [ 'st' ],
      action: startTap,
      inject: true,
      locationContext: 'CONTAINERS',
      description: `Runs a tap in a docker container`,
      example: 'keg tap start <options>',
      options: mergeTaskOptions('tap', 'start', 'startService', {
        tap: { 
          description: 'Name of the tap to run. Must be a tap linked in the global config',
          example: 'keg tap start --tap events-force',
          required: true,
        },
      }),
    }
  }