From 2da950246d0cb11fc3315c249e3519e97d91046f Mon Sep 17 00:00:00 2001 From: Bryan Oltman Date: Fri, 1 Sep 2023 12:24:07 -0400 Subject: [PATCH] fix(shorebird_cli): remove reference to deleted `account create` command (#1204) --- packages/shorebird_cli/lib/src/commands/login_command.dart | 3 ++- .../shorebird_cli/test/src/commands/login_command_test.dart | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/shorebird_cli/lib/src/commands/login_command.dart b/packages/shorebird_cli/lib/src/commands/login_command.dart index 8baa2c59..9e0a384f 100644 --- a/packages/shorebird_cli/lib/src/commands/login_command.dart +++ b/packages/shorebird_cli/lib/src/commands/login_command.dart @@ -26,13 +26,14 @@ class LoginCommand extends ShorebirdCommand { ); return ExitCode.success.code; } on UserNotFoundException catch (error) { + final consoleUri = Uri.https('console.shorebird.dev'); logger ..err( ''' We could not find a Shorebird account for ${error.email}.''', ) ..info( - """If you have not yet created an account, you can do so by running "${lightCyan.wrap('shorebird account create')}". If you believe this is an error, please reach out to us via Discord, we're happy to help!""", + """If you have not yet created an account, you can do so at "${link(uri: consoleUri)}". If you believe this is an error, please reach out to us via Discord, we're happy to help!""", ); return ExitCode.software.code; } catch (error) { diff --git a/packages/shorebird_cli/test/src/commands/login_command_test.dart b/packages/shorebird_cli/test/src/commands/login_command_test.dart index b52ffc7d..c3e75e57 100644 --- a/packages/shorebird_cli/test/src/commands/login_command_test.dart +++ b/packages/shorebird_cli/test/src/commands/login_command_test.dart @@ -80,7 +80,7 @@ void main() { () => logger.err('We could not find a Shorebird account for $email.'), ).called(1); verify( - () => logger.info(any(that: contains('shorebird account create'))), + () => logger.info(any(that: contains('console.shorebird.dev'))), ).called(1); });