示例#1
0
 /** @inheritdoc */
 protected function getOptions()
 {
     return array_merge(parent::getOptions(), [['mount-type', 't', InputOption::VALUE_REQUIRED, 'The type of mount: ' . implode(', ', MountTypes::getDefinedConstants(true))], ['owner-id', null, InputOption::VALUE_REQUIRED, 'The "owner-id" of this mount'], ['owner-type', null, InputOption::VALUE_REQUIRED, 'The type of owner: ' . implode(', ', OwnerTypes::getDefinedConstants(true))], ['root-path', 'p', InputOption::VALUE_REQUIRED, 'The "root-path" of the mount'], ['config', 'c', InputOption::VALUE_REQUIRED, 'JSON-encoded array of configuration data for this mount']]);
 }
示例#2
0
 /** @inheritdoc */
 protected function getOptions()
 {
     return array_merge(parent::getOptions(), [['owner-id', null, InputOption::VALUE_REQUIRED, 'The "owner-id" of this cluster'], ['owner-type', null, InputOption::VALUE_REQUIRED, 'The type of owner: ' . implode(', ', OwnerTypes::getDefinedConstants(true))], ['subdomain', null, InputOption::VALUE_REQUIRED, 'The subdomain in which this cluster resides'], ['max-instances', 'm', InputOption::VALUE_REQUIRED, 'The maximum number of instances allowed, if any.'], ['server-id', null, InputOption::VALUE_REQUIRED, 'The "server-id" to "add" or "remove"']]);
 }