status.php 979 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Copyright (c) 2013 Bart Visscher <bartv@thisnet.nl>
  4. * This file is licensed under the Affero General Public License version 3 or
  5. * later.
  6. * See the COPYING-README file.
  7. */
  8. namespace OC\Core\Command;
  9. use Symfony\Component\Console\Command\Command;
  10. use Symfony\Component\Console\Input\InputArgument;
  11. use Symfony\Component\Console\Input\InputInterface;
  12. use Symfony\Component\Console\Input\InputOption;
  13. use Symfony\Component\Console\Output\OutputInterface;
  14. class Status extends Command {
  15. protected function configure() {
  16. $this
  17. ->setName('status')
  18. ->setDescription('show some status information')
  19. ;
  20. }
  21. protected function execute(InputInterface $input, OutputInterface $output) {
  22. $values = array(
  23. 'installed' => \OC_Config::getValue('installed') ? 'true' : 'false',
  24. 'version' => implode('.', \OC_Util::getVersion()),
  25. 'versionstring' => \OC_Util::getVersionString(),
  26. 'edition' => \OC_Util::getEditionString(),
  27. );
  28. print_r($values);
  29. }
  30. }