You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
879 B

  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\InputInterface;
  11. use Symfony\Component\Console\Output\OutputInterface;
  12. class Status extends Command {
  13. protected function configure() {
  14. $this
  15. ->setName('status')
  16. ->setDescription('show some status information')
  17. ;
  18. }
  19. protected function execute(InputInterface $input, OutputInterface $output) {
  20. $values = array(
  21. 'installed' => \OC_Config::getValue('installed') ? 'true' : 'false',
  22. 'version' => implode('.', \OC_Util::getVersion()),
  23. 'versionstring' => \OC_Util::getVersionString(),
  24. 'edition' => \OC_Util::getEditionString(),
  25. );
  26. print_r($values);
  27. }
  28. }