Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

made command helps more generic

  • Loading branch information...
commit 7893de6e52fe7ec19ffd94808d3a0cc8cf38b0af 1 parent ec802e5
@fabpot fabpot authored
Showing with 12 additions and 12 deletions.
  1. +12 −12 src/console.php
View
24 src/console.php
@@ -25,9 +25,9 @@
))
->setDescription('Displays the latest output for a project')
->setHelp(<<<EOF
-The <info>output</info> command displays the latest output for a project:
+The <info>%command.name%</info> command displays the latest output for a project:
- <info>./sismo output twig</info>
+ <info>php %command.full_name% output twig</info>
EOF
)
->setCode(function (InputInterface $input, OutputInterface $output) use ($app) {
@@ -75,47 +75,47 @@
))
->setDescription('Build projects')
->setHelp(<<<EOF
-Without any arguments, the <info>build</info> command builds the latest commit
+Without any arguments, the <info>%command.name%</info> command builds the latest commit
of all configured projects one after the other:
- <info>./sismo build</info>
+ <info>php %command.full_name% build</info>
The command loads project configurations from
<comment>~/.sismo/config.php</comment>. Change it with the
<info>--config-file</info> option:
- <info>./sismo build --config-file=/path/to/config.php</info>
+ <info>php %command.full_name% build --config-file=/path/to/config.php</info>
Data (repository, DB, ...) are stored in <comment>~/.sismo/data/</comment>.
The <info>--data-path</info> option allows you to change the default:
- <info>./sismo build --data-path=/path/to/data</info>
+ <info>php %command.full_name% build --data-path=/path/to/data</info>
Pass the project slug to build a specific project:
- <info>./sismo build twig</info>
+ <info>php %command.full_name% build twig</info>
Force a specific commit to be built by passing the SHA:
- <info>./sismo build twig a1ef34</info>
+ <info>php %command.full_name% build twig a1ef34</info>
Use <comment>--force</comment> to force the built even if it has already been
built previously:
- <info>./sismo build twig a1ef34 --force</info>
+ <info>php %command.full_name% build twig a1ef34 --force</info>
Disable notifications with <comment>--silent</comment>:
- <info>./sismo build twig a1ef34 --silent</info>
+ <info>php %command.full_name% build twig a1ef34 --silent</info>
Disable repository synchonization with <comment>--local</comment>:
- <info>./sismo build twig a1ef34 --local</info>
+ <info>php %command.full_name% build twig a1ef34 --local</info>
Limit the time (in seconds) spent by the command building projects by using
the <comment>--timeout</comment> option:
- <info>./sismo build twig --timeout 3600</info>
+ <info>php %command.full_name% build twig --timeout 3600</info>
When you use this command as a cron job, <comment>--timeout</comment> can avoid
the command to be run concurrently. Be warned that this is a rough estimate as
Please sign in to comment.
Something went wrong with that request. Please try again.