Remove search option, can be changed in json easily or with --value
This commit is contained in:
parent
45426c7c14
commit
d55a615654
@ -91,11 +91,6 @@ class ConfigBuilder
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function withSearch($value): ConfigBuilder {
|
|
||||||
$this->config['html']['search'] = $value;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function withConfluenceDelete($value): ConfigBuilder {
|
public function withConfluenceDelete($value): ConfigBuilder {
|
||||||
$this->config['confluence']['delete'] = $value;
|
$this->config['confluence']['delete'] = $value;
|
||||||
return $this;
|
return $this;
|
||||||
|
@ -26,8 +26,7 @@ class Generate extends DauxCommand
|
|||||||
// Confluence format only
|
// Confluence format only
|
||||||
->addOption('delete', null, InputOption::VALUE_NONE, 'Delete pages not linked to a documentation page (confluence)')
|
->addOption('delete', null, InputOption::VALUE_NONE, 'Delete pages not linked to a documentation page (confluence)')
|
||||||
|
|
||||||
->addOption('destination', 'd', InputOption::VALUE_REQUIRED, $description, 'static')
|
->addOption('destination', 'd', InputOption::VALUE_REQUIRED, $description, 'static');
|
||||||
->addOption('search', null, InputOption::VALUE_NONE, 'Generate full text search');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function prepareConfig($mode, InputInterface $input, OutputInterface $output): ConfigBuilder
|
protected function prepareConfig($mode, InputInterface $input, OutputInterface $output): ConfigBuilder
|
||||||
@ -43,10 +42,6 @@ class Generate extends DauxCommand
|
|||||||
$builder->withConfluenceDelete(true);
|
$builder->withConfluenceDelete(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($input->hasOption('search')) {
|
|
||||||
$builder->withSearch($input->getOption('search'));
|
|
||||||
}
|
|
||||||
|
|
||||||
return $builder;
|
return $builder;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user