예제 #1
0
 protected function configure()
 {
     parent::configure();
     $this->setName('pad')->setDescription('Pad CSV lines to a specific length')->addOption('length', 'l', InputOption::VALUE_REQUIRED, 'Pad length', 0);
 }
예제 #2
0
 protected function configure()
 {
     parent::configure();
     $this->setName('cut')->setDescription('Select a subset of columns')->addOption('from', 'f', InputOption::VALUE_REQUIRED)->addOption('to', 't', InputOption::VALUE_REQUIRED);
 }
예제 #3
0
 protected function configure()
 {
     parent::configure();
     $this->setName('callback')->setDescription('Execute a PHP callback for each line of the CSV. The callback is provided acces to $row and $reader variables')->addOption('callback', 'c', InputOption::VALUE_REQUIRED, 'The PHP callback as a one liner');
 }
예제 #4
0
 protected function configure()
 {
     parent::configure();
     $this->setName('append')->setDescription('Append the CSV files passed in input');
 }
예제 #5
0
 protected function configure()
 {
     parent::configure();
     $this->setName('merge')->setDescription('Merge the csv files passed as input');
 }