protected function configure()
 {
     parent::configure();
     $this->setName('records:update')->setDescription('Update a record.');
     $this->addArgument('id', InputArgument::REQUIRED, 'Record ID.')->addArgument('name', InputArgument::REQUIRED, 'Record name. Example: dev.example.com.')->addArgument('content', InputArgument::REQUIRED, 'Record value. Example: 8.8.8.8')->addArgument('type', InputArgument::REQUIRED, 'Record Type. Example: A');
     $this->addOption('priority', 'p', InputOption::VALUE_REQUIRED, 'Record priority. Example: 1.', null)->addOption('enable-failover', 'f', InputOption::VALUE_NONE, 'Use this flag to enable fail-over.')->addOption('failover-content', 'fc', InputOption::VALUE_REQUIRED, 'Value of fail-over record.')->addOption('ttl', 't', InputOption::VALUE_REQUIRED, 'TTL')->addOption('geozone', 'g', InputOption::VALUE_REQUIRED, 'Geo Zone ID. See records:regions for available zones.')->addOption('lock-geo', 'l', InputOption::VALUE_NONE, 'Use this flag to lock geo.')->addOption('geo-long', 'lo', InputOption::VALUE_REQUIRED, 'Geo longitude')->addOption('geo-lat', 'la', InputOption::VALUE_REQUIRED, 'Geo latitude');
 }
 protected function configure()
 {
     parent::configure();
     $this->setName('records:all')->setDescription('List all records for specific domain.')->addOption('full', null, InputOption::VALUE_NONE, 'Display all properties of records.')->addArgument('id', InputArgument::REQUIRED, 'ID of domain.');
 }
Example #3
0
 protected function configure()
 {
     parent::configure();
     $this->setName('records:types')->setDescription('Display all available record types.');
 }
 protected function configure()
 {
     parent::configure();
     $this->setName('records:delete')->setDescription('Delete a record.');
     $this->addArgument('id', InputArgument::REQUIRED, 'Record ID.');
 }
 protected function configure()
 {
     parent::configure();
     $this->setName('records:regions')->setDescription('Display all geo regions.');
 }