Skip to content

Commit

Permalink
feat: enhance upgrade prompt to use very_good update (#447)
Browse files Browse the repository at this point in the history
  • Loading branch information
felangel authored Jun 29, 2022
1 parent e783b8a commit 215bc83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/src/command_runner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class VeryGoodCommandRunner extends CommandRunner<int> {
'''
${lightYellow.wrap('Update available!')} ${lightCyan.wrap(packageVersion)} \u2192 ${lightCyan.wrap(latestVersion)}
${lightYellow.wrap('Changelog:')} ${lightCyan.wrap('https://github.com/verygoodopensource/very_good_cli/releases/tag/v$latestVersion')}
Run ${lightCyan.wrap('dart pub global activate very_good_cli')} to update''',
Run ${lightCyan.wrap('very_good update')} to update''',
);
}
} catch (_) {}
Expand Down
2 changes: 1 addition & 1 deletion test/src/command_runner_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const latestVersion = '0.0.0';
final updatePrompt = '''
${lightYellow.wrap('Update available!')} ${lightCyan.wrap(packageVersion)} \u2192 ${lightCyan.wrap(latestVersion)}
${lightYellow.wrap('Changelog:')} ${lightCyan.wrap('https://github.com/verygoodopensource/very_good_cli/releases/tag/v$latestVersion')}
Run ${lightCyan.wrap('dart pub global activate very_good_cli')} to update''';
Run ${lightCyan.wrap('very_good update')} to update''';

void main() {
group('VeryGoodCommandRunner', () {
Expand Down

0 comments on commit 215bc83

Please sign in to comment.