mirror of
https://github.com/there4/markdown-resume.git
synced 2024-12-03 08:59:35 -05:00
Add templates command as warmup for other commands
* Add descriptions to the templates * Update twig formatters and fix some output bugs
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
namespace Resume\Command;
|
||||
|
||||
use Symfony\Component\Console\Command\Command;
|
||||
use Symfony\Component\Console\Input\InputOption;
|
||||
use Symfony\Component\Console\Input\InputArgument;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
|
||||
@@ -9,9 +11,33 @@ class HtmlCommand extends Command
|
||||
{
|
||||
protected function configure()
|
||||
{
|
||||
// resume html source.md resume.html -template blockish -refresh
|
||||
$this
|
||||
->setName('html')
|
||||
->setDescription('Generate an HTML resume from a markdown file');
|
||||
->setDescription('Generate an HTML resume from a markdown file')
|
||||
->addArgument(
|
||||
'source',
|
||||
InputArgument::REQUIRED,
|
||||
'Source markdown document'
|
||||
)
|
||||
->addArgument(
|
||||
'output',
|
||||
InputArgument::REQUIRED,
|
||||
'Output html document'
|
||||
)
|
||||
->addOption(
|
||||
'template',
|
||||
't',
|
||||
InputOption::VALUE_NONE,
|
||||
'Which of the templates to use'
|
||||
)
|
||||
->addOption(
|
||||
'refresh',
|
||||
'r',
|
||||
InputOption::VALUE_NONE,
|
||||
'If set, the html will include a meta command to refresh the ' .
|
||||
'document every 5 seconds.'
|
||||
);
|
||||
}
|
||||
|
||||
protected function execute(InputInterface $input, OutputInterface $output)
|
||||
|
||||
Reference in New Issue
Block a user