Example #1
0
 /**
  * Returns long description of this command by parsing the docs
  *
  * @return array
  */
 function getLongdesc()
 {
     $binding = [];
     $configurator = new Configurator();
     $spec = $configurator->getSpec();
     foreach ($spec as $key => $details) {
         if ($details['runtime'] === false || isset($details['deprecated']) || isset($details['hidden'])) {
             continue;
         } else {
             $synopsis = "--{$key}" . $details['runtime'];
         }
         $binding['parameters'][] = array('synopsis' => $synopsis, 'desc' => $details['desc']);
     }
     return $binding;
 }
Example #2
0
 /**
  * Dump the list of global parameters, as JSON.
  *
  * @subcommand param-dump
  */
 function paramDump()
 {
     $configurator = new Configurator();
     $this->output()->outputDump($configurator->getSpec());
 }