Beispiel #1
0
	protected function configure() {
		parent::configure();

		$this
			->setName('config:system:set')
			->setDescription('Set a system config value')
			->addArgument(
				'name',
				InputArgument::REQUIRED,
				'Name of the config to set'
			)
			->addOption(
				'value',
				null,
				InputOption::VALUE_REQUIRED,
				'The new value of the config'
			)
			->addOption(
				'update-only',
				null,
				InputOption::VALUE_NONE,
				'Only updates the value, if it is not set before, it is not being added'
			)
		;
	}
Beispiel #2
0
 protected function configure()
 {
     parent::configure();
     $this->setName('twofactorauth:enable');
     $this->setDescription('Enable two-factor authentication for a user');
     $this->addArgument('uid', InputArgument::REQUIRED);
 }
 /**
  * @param InputInterface $input
  * @param OutputInterface $output
  * @param array $items
  */
 protected function writeAppList(InputInterface $input, OutputInterface $output, $items)
 {
     switch ($input->getOption('output')) {
         case self::OUTPUT_FORMAT_PLAIN:
             $output->writeln('Enabled:');
             parent::writeArrayInOutputFormat($input, $output, $items['enabled']);
             $output->writeln('Disabled:');
             parent::writeArrayInOutputFormat($input, $output, $items['disabled']);
             break;
         default:
             parent::writeArrayInOutputFormat($input, $output, $items);
             break;
     }
 }
Beispiel #4
0
	protected function configure() {
		parent::configure();

		$this
			->setName('config:system:delete')
			->setDescription('Delete a system config value')
			->addArgument(
				'name',
				InputArgument::REQUIRED,
				'Name of the config to delete'
			)
			->addOption(
				'error-if-not-exists',
				null,
				InputOption::VALUE_NONE,
				'Checks whether the config exists before deleting it'
			)
		;
	}
Beispiel #5
0
	protected function configure() {
		parent::configure();

		$this
			->setName('config:list')
			->setDescription('List all configs')
			->addArgument(
				'app',
				InputArgument::OPTIONAL,
				'Name of the app ("system" to get the config.php values, "all" for all apps and system)',
				'all'
			)
			->addOption(
				'private',
				null,
				InputOption::VALUE_NONE,
				'Use this option when you want to include sensitive configs like passwords, salts, ...'
			)
		;
	}
Beispiel #6
0
 /**
  * {@inheritdoc }
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('integrity:check-app')->setDescription('Check an app integrity using a signature.')->addArgument('appid', null, InputArgument::REQUIRED, 'Application to check')->addOption('path', null, InputOption::VALUE_OPTIONAL, 'Path to application. If none is given it will be guessed.');
 }
Beispiel #7
0
 protected function configure()
 {
     parent::configure();
     $this->setName('status')->setDescription('show some status information');
 }
Beispiel #8
0
 protected function configure()
 {
     parent::configure();
     $this->setName('app:getpath')->setDescription('Get an absolute path to the app directory')->addArgument('app', InputArgument::REQUIRED, 'Name of the app');
 }
Beispiel #9
0
 protected function configure()
 {
     parent::configure();
     $this->setName('files:scan')->setDescription('rescan filesystem')->addArgument('user_id', InputArgument::OPTIONAL | InputArgument::IS_ARRAY, 'will rescan all files of the given user(s)')->addOption('path', 'p', InputArgument::OPTIONAL, 'limit rescan to this path, eg. --path="/alice/files/Music", the user_id is determined by the path and the user_id parameter and --all are ignored')->addOption('quiet', 'q', InputOption::VALUE_NONE, 'suppress any output')->addOption('verbose', '-v|vv|vvv', InputOption::VALUE_NONE, 'verbose the output')->addOption('all', null, InputOption::VALUE_NONE, 'will rescan all files of all known users')->addOption('unscanned', null, InputOption::VALUE_NONE, 'only scan files which are marked as not fully scanned');
 }
Beispiel #10
0
 protected function configure()
 {
     $this->setName('files_external:config')->setDescription('Manage backend configuration for a mount')->addArgument('mount_id', InputArgument::REQUIRED, 'The id of the mount to edit')->addArgument('key', InputArgument::REQUIRED, 'key of the config option to set/get')->addArgument('value', InputArgument::OPTIONAL, 'value to set the config option to, when no value is provided the existing value will be printed');
     parent::configure();
 }
Beispiel #11
0
 protected function configure()
 {
     $this->setName('files_external:verify')->setDescription('Verify mount configuration')->addArgument('mount_id', InputArgument::REQUIRED, 'The id of the mount to check')->addOption('config', 'c', InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Additional config option to set before checking in key=value pairs, required for certain auth backends such as login credentails');
     parent::configure();
 }
Beispiel #12
0
 protected function configure()
 {
     $this->setName('security:certificates')->setDescription('list trusted certificates');
     parent::configure();
 }
Beispiel #13
0
 /**
  * {@inheritdoc }
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('integrity:check-core')->setDescription('Check a core integrity using a signature.');
 }
Beispiel #14
0
 protected function configure()
 {
     parent::configure();
     $this->setName('config:system:get')->setDescription('Get a system config value')->addArgument('name', InputArgument::REQUIRED | InputArgument::IS_ARRAY, 'Name of the config to get, specify multiple for array parameter')->addOption('default-value', null, InputOption::VALUE_OPTIONAL, 'If no default value is set and the config does not exist, the command will exit with 1');
 }
Beispiel #15
0
 protected function configure()
 {
     parent::configure();
     $this->setName('config:app:get')->setDescription('Get an app config value')->addArgument('app', InputArgument::REQUIRED, 'Name of the app')->addArgument('name', InputArgument::REQUIRED, 'Name of the config to get')->addOption('default-value', null, InputOption::VALUE_OPTIONAL, 'If no default value is set and the config does not exist, the command will exit with 1');
 }
Beispiel #16
0
 protected function configure()
 {
     parent::configure();
     $this->setName('encryption:status')->setDescription('Lists the current status of encryption');
 }
Beispiel #17
0
 protected function configure()
 {
     $this->setName('files_external:list')->setDescription('List configured mounts')->addArgument('user_id', InputArgument::OPTIONAL, 'user id to list the personal mounts for, if no user is provided admin mounts will be listed')->addOption('show-password', null, InputOption::VALUE_NONE, 'show passwords and secrets')->addOption('full', null, InputOption::VALUE_NONE, 'don\'t truncate long values in table output');
     parent::configure();
 }
Beispiel #18
0
 protected function configure()
 {
     $this->setName('files_external:applicable')->setDescription('Manage applicable users and groups for a mount')->addArgument('mount_id', InputArgument::REQUIRED, 'The id of the mount to edit')->addOption('add-user', null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, 'user to add as applicable')->addOption('remove-user', null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, 'user to remove as applicable')->addOption('add-group', null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, 'group to add as applicable')->addOption('remove-group', null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, 'group to remove as applicable')->addOption('remove-all', null, InputOption::VALUE_NONE, 'Set the mount to be globally applicable');
     parent::configure();
 }
Beispiel #19
0
 protected function configure()
 {
     $this->setName('files_external:backends')->setDescription('Show available authentication and storage backends')->addArgument('type', InputArgument::OPTIONAL, 'only show backends of a certain type. Possible values are "authentication" or "storage"')->addArgument('backend', InputArgument::OPTIONAL, 'only show information of a specific backend');
     parent::configure();
 }
Beispiel #20
0
 protected function configure()
 {
     $this->setName('files_external:import')->setDescription('Import mount configurations')->addOption('user', null, InputOption::VALUE_OPTIONAL, 'user to add the mount configurations for, if not set the mount will be added as system mount')->addArgument('path', InputArgument::REQUIRED, 'path to a json file containing the mounts to import, use "-" to read from stdin')->addOption('dry', null, InputOption::VALUE_NONE, 'Don\'t save the imported mounts, only list the new mounts');
     parent::configure();
 }
Beispiel #21
0
 protected function configure()
 {
     $this->setName('files_external:delete')->setDescription('Delete an external mount')->addArgument('mount_id', InputArgument::REQUIRED, 'The id of the mount to edit')->addOption('yes', 'y', InputOption::VALUE_NONE, 'Skip confirmation');
     parent::configure();
 }
Beispiel #22
0
 protected function configure()
 {
     $this->setName('files_external:create')->setDescription('Create a new mount configuration')->addOption('user', null, InputOption::VALUE_OPTIONAL, 'user to add the mount configuration for, if not set the mount will be added as system mount')->addArgument('mount_point', InputArgument::REQUIRED, 'mount point for the new mount')->addArgument('storage_backend', InputArgument::REQUIRED, 'storage backend identifier for the new mount, see `occ files_external:backends` for possible values')->addArgument('authentication_backend', InputArgument::REQUIRED, 'authentication backend identifier for the new mount, see `occ files_external:backends` for possible values')->addOption('config', 'c', InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Mount configuration option in key=value format')->addOption('dry', null, InputOption::VALUE_NONE, 'Don\'t save the created mount, only list the new mount');
     parent::configure();
 }
Beispiel #23
0
 protected function configure()
 {
     parent::configure();
     $this->setName('encryption:list-modules')->setDescription('List all available encryption modules');
 }
Beispiel #24
0
 public function __construct(ICertificateManager $certificateManager)
 {
     $this->certificateManager = $certificateManager;
     parent::__construct();
 }
Beispiel #25
0
 protected function configure()
 {
     parent::configure();
     $this->setName('config:system:set')->setDescription('Set a system config value')->addArgument('name', InputArgument::REQUIRED | InputArgument::IS_ARRAY, 'Name of the config parameter, specify multiple for array parameter')->addOption('type', null, InputOption::VALUE_REQUIRED, 'Value type [string, integer, double, boolean]', 'string')->addOption('value', null, InputOption::VALUE_REQUIRED, 'The new value of the config')->addOption('update-only', null, InputOption::VALUE_NONE, 'Only updates the value, if it is not set before, it is not being added');
 }
Beispiel #26
0
 protected function configure()
 {
     parent::configure();
     $this->setName('check')->setDescription('check dependencies of the server environment');
 }