diff --git a/src/src/Commands/Partner/AddPartner.php b/src/src/Commands/Partner/AddPartner.php index 9245a7da..5e445c56 100644 --- a/src/src/Commands/Partner/AddPartner.php +++ b/src/src/Commands/Partner/AddPartner.php @@ -42,7 +42,7 @@ public function __construct( ManagerBackend $manager_backend, Cache $cache, Auth protected function configure() { $this ->setDescription( 'Configure a new WCCOM Marketplace Partner that the QIT CLI can connect to.' ) - ->setHelp( sprintf( "Configure the QIT CLI to be able to interact with %s on behalf of a given partner.\nAuthenticating documentation: https://woocommerce.github.io/qit-documentation/#/authenticating", get_wccom_url() ) ) + ->setHelp( sprintf( "Configure the QIT CLI to be able to interact with %s on behalf of a given partner.\nAuthenticating documentation: https://qit.woo.com/docs/support/authenticating", get_wccom_url() ) ) ->addOption( 'user', 'u', InputOption::VALUE_OPTIONAL, '(Optional) Woo.com Partner Developer username.' ) ->addOption( 'qit_token', 't', InputOption::VALUE_OPTIONAL, '(Optional) Woo.com Partner Developer QIT Token.' ) ->addOption( 'application_password', 'p', InputOption::VALUE_OPTIONAL, '(DEPRECATED) This has been renamed to "QIT Token" and will be removed. A regular application password will not work.' ); @@ -95,11 +95,11 @@ protected function execute( InputInterface $input, OutputInterface $output ): in $question->setValidator( function ( $qit_token ) { if ( empty( $qit_token ) ) { - throw new \RuntimeException( 'Invalid QIT Token. Questions? https://woocommerce.github.io/qit-documentation/#/authenticating' ); + throw new \RuntimeException( 'Invalid QIT Token. Questions? https://qit.woo.com/docs/support/authenticating' ); } if ( ! preg_match( '#^[a-z0-9 ]+$#i', $qit_token ) ) { - throw new \RuntimeException( 'A QIT Token should consist of alpha-numeric characters and spaces. Questions? https://woocommerce.github.io/qit-documentation/#/authenticating' ); + throw new \RuntimeException( 'A QIT Token should consist of alpha-numeric characters and spaces. Questions? https://qit.woo.com/docs/support/authenticating' ); } return $qit_token; @@ -117,7 +117,7 @@ protected function execute( InputInterface $input, OutputInterface $output ): in $user = strtolower( $user ); if ( ! filter_var( $user, FILTER_VALIDATE_EMAIL ) && ! preg_match( '#^[a-z0-9_-]{1,70}$#i', $user ) ) { - throw new \InvalidArgumentException( 'The username must be either a valid e-mail, or contain only letters, numbers, underscores or dashes. Questions? https://woocommerce.github.io/qit-documentation/#/authenticating' ); + throw new \InvalidArgumentException( 'The username must be either a valid e-mail, or contain only letters, numbers, underscores or dashes. Questions? https://qit.woo.com/docs/support/authenticating' ); } // Remove any non-alphanumeric characters from the username. @@ -159,8 +159,8 @@ protected function execute( InputInterface $input, OutputInterface $output ): in $io->section( <<
output->writeln( sprintf( "Current version: %s\nLatest version: %s", $current_version, $latest_version ) ); $this->output->writeln( "\nUpdate today to take advantage of the latest features!" ); - $this->output->writeln( "How to update: https://woocommerce.github.io/qit-documentation/#/cli/getting-started?id=updating-qit\n" ); + $this->output->writeln( "How to update: https://qit.woo.com/docs/cli/getting-started#updating-qit\n" ); if ( version_compare( $current_version, $minimum_cli_version, '<' ) ) { if ( ! Config::is_development_mode() ) { $this->output->writeln( sprintf( 'You are using an outdated version of the CLI. Please update to the latest version (%s).', $latest_version ) ); diff --git a/src/src/helpers.php b/src/src/helpers.php index 8c04b0c3..8471d08e 100644 --- a/src/src/helpers.php +++ b/src/src/helpers.php @@ -44,7 +44,7 @@ function validate_authentication( string $username, string $qit_token ): void { ] ) ->request(); } catch ( \Exception $e ) { - throw new \Exception( sprintf( 'Could not authenticate to %s using the provided username and QIT Token. Questions? https://woocommerce.github.io/qit-documentation/#/authenticating', get_wccom_url() ) ); + throw new \Exception( sprintf( 'Could not authenticate to %s using the provided username and QIT Token. Questions? https://qit.woo.com/docs/support/authenticating', get_wccom_url() ) ); } }