Skip to content

Commit

Permalink
fix: update prompt formatting (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
felangel committed Jan 20, 2022
1 parent 2e67eff commit f8461de
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions lib/src/command_runner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ class VeryGoodCommandRunner extends CommandRunner<int> {
..info('')
..info(
'''
+------------------------------------------------------------------------------------+
| |
| ${lightYellow.wrap('Update available!')} ${lightCyan.wrap(packageVersion)} \u2192 ${lightCyan.wrap(latestVersion)} |
+-------------------------------------------------------------------------------------+
| |
| ${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')} |
| |
+------------------------------------------------------------------------------------+
| |
+-------------------------------------------------------------------------------------+
''',
);
final response = _logger.prompt('Would you like to update? (y/n) ');
Expand Down
10 changes: 5 additions & 5 deletions test/src/command_runner_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ const responseBody =
const latestVersion = '0.0.0';

final updatePrompt = '''
+------------------------------------------------------------------------------------+
| |
| ${lightYellow.wrap('Update available!')} ${lightCyan.wrap(packageVersion)} \u2192 ${lightCyan.wrap(latestVersion)} |
+-------------------------------------------------------------------------------------+
| |
| ${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')} |
| |
+------------------------------------------------------------------------------------+
| |
+-------------------------------------------------------------------------------------+
''';

void main() {
Expand Down

0 comments on commit f8461de

Please sign in to comment.