Skip to content

Commit

Permalink
change the error message for onepub login in an ssh shell.
Browse files Browse the repository at this point in the history
  • Loading branch information
bsutton committed Aug 20, 2022
1 parent 9f27b3a commit 20b854e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/src/commands/login.dart
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,16 @@ class OnePubLoginCommand extends Command<int> {
if (inSSH()) {
throw ExitException(exitCode: -1, message: """
${red('onepub login will not work from an ssh shell.')}
${orange('${OnePubSettings.use.onepubWebUrl}/guides/ssh')}
https://docs.onepub.dev/guides/ssh
Instead:
Exit your ssh session and run:
${green('onepub export')}
Restart your ssh session and run:
${green('onepub import --ask')}
See the documentation for full details and alternate techniques:
${orange('${OnePubSettings.use.onepubWebUrl}/guides/ssh')}
""");
}
}
Expand Down

0 comments on commit 20b854e

Please sign in to comment.