fix: add retrieval of customized base doc URL

Signed-off-by: Josh <josh.t.richards@gmail.com>
pull/54180/head
Josh 1 month ago committed by GitHub
parent 5fcc8115d2
commit b4027c557d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      core/Command/Base.php

@ -24,9 +24,10 @@ class Base extends Command implements CompletionAwareInterface {
protected string $defaultOutputFormat = self::OUTPUT_FORMAT_PLAIN;
private bool $php_pcntl_signal = false;
private bool $interrupted = false;
public string $defaultHelp = 'More extensive and thorough documentation may be found at https://docs.nextcloud.com' . PHP_EOL; // TODO: link to appropriately versioned/themed Admin Manual
protected function configure() {
// Some of our commands do not extend this class; and some of those that do do not call parent::configure()
$defaultHelp = 'More extensive and thorough documentation may be found at ' . \OCP\Server::get(\OCP\Defaults::class)->getDocBaseUrl() . PHP_EOL;
$this
->setHelp($this->defaultHelp)
->addOption(

Loading…
Cancel
Save