Skip to content

Commit

Permalink
chore: clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny committed Mar 18, 2022
1 parent 0b9499b commit 5b9a9a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
12 changes: 3 additions & 9 deletions src/Command/Build.php
Expand Up @@ -33,19 +33,13 @@ protected function configure()
->setDefinition(
new InputDefinition([
new InputArgument('path', InputArgument::OPTIONAL, 'Use the given path as working directory'),
new InputOption('config', 'c', InputOption::VALUE_REQUIRED, 'Set the path to the config file(s) (comma-separated)'),
new InputOption('config', 'c', InputOption::VALUE_REQUIRED, 'Set the path to extra config files (comma-separated)'),
new InputOption('drafts', 'd', InputOption::VALUE_NONE, 'Include drafts'),
new InputOption('dry-run', null, InputOption::VALUE_NONE, 'Build without saving'),
new InputOption('baseurl', null, InputOption::VALUE_REQUIRED, 'Set the base URL'),
new InputOption('output', null, InputOption::VALUE_REQUIRED, 'Set the output directory'),
new InputOption(
'postprocess',
null,
InputOption::VALUE_OPTIONAL,
'Post-process output (disable with "no")',
false
),
new InputOption('clear-cache', null, InputOption::VALUE_NONE, 'Clear cache after build'),
new InputOption('postprocess', null, InputOption::VALUE_OPTIONAL, 'Post-process output (disable with "no")', false),
new InputOption('clear-cache', null, InputOption::VALUE_NONE, 'Clear cache before build'),
])
)
->setHelp('Builds the website in the output directory');
Expand Down
12 changes: 3 additions & 9 deletions src/Command/Serve.php
Expand Up @@ -42,19 +42,13 @@ protected function configure()
->setDefinition(
new InputDefinition([
new InputArgument('path', InputArgument::OPTIONAL, 'Use the given path as working directory'),
new InputOption('config', 'c', InputOption::VALUE_REQUIRED, 'Set the path to the config file(s) (comma-separated)'),
new InputOption('config', 'c', InputOption::VALUE_REQUIRED, 'Set the path to extra config files (comma-separated)'),
new InputOption('drafts', 'd', InputOption::VALUE_NONE, 'Include drafts'),
new InputOption('open', 'o', InputOption::VALUE_NONE, 'Open browser automatically'),
new InputOption('host', null, InputOption::VALUE_REQUIRED, 'Server host'),
new InputOption('port', null, InputOption::VALUE_REQUIRED, 'Server port'),
new InputOption(
'postprocess',
null,
InputOption::VALUE_OPTIONAL,
'Post-process output (disable with "no")',
false
),
new InputOption('clear-cache', null, InputOption::VALUE_NONE, 'Clear cache after build'),
new InputOption('postprocess', null, InputOption::VALUE_OPTIONAL, 'Post-process output (disable with "no")', false),
new InputOption('clear-cache', null, InputOption::VALUE_NONE, 'Clear cache before build'),
])
)
->setHelp('Starts the live-reloading-built-in web server');
Expand Down

0 comments on commit 5b9a9a2

Please sign in to comment.