Example #1
0
 protected function configure()
 {
     parent::configure();
     $this->setName('inventory:facter')->setDescription('Get facts from system and a Sugar instance')->addArgument('source', InputArgument::IS_ARRAY | InputArgument::OPTIONAL, 'Specify facts source (all|system|sugarcrm)', array('all'))->addOption('format', 'f', InputOption::VALUE_REQUIRED, 'Specify the output format. (json|yml|xml).', 'yml')->setRequiredOption('path', false);
 }
Example #2
0
 protected function configure()
 {
     parent::configure();
     $this->setName('inventory:agent')->setDescription('Gather facts and send report to Inventory server.')->addArgument('server', InputArgument::REQUIRED, 'Url of the inventory server.')->addArgument('username', InputArgument::REQUIRED, 'Username for server authentication.')->addArgument('password', InputArgument::REQUIRED, 'Password for server authentication.')->addConfigOption('account.name', 'account-name', 'a', InputOption::VALUE_REQUIRED, 'Name of the account.');
 }