Skip to content

Commit

Permalink
pr stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
renancaraujo committed Dec 15, 2022
1 parent ccd0f60 commit 64da741
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions lib/src/installer/completion_installation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,13 @@ class CompletionInstallation {
void adviseSource(String rootCommand) {
final level = logger.level;
logger
..level = Level.debug
..detail(
..level = Level.info
..info(
'\n'
'Completion files installed. To enable completion, run the following '
'command in your shell:\n'
'source $_shellRCFilePath\n',
'${lightCyan.wrap('source $_shellRCFilePath')}'
'\n',
)
..level = level;
}
Expand Down
6 changes: 3 additions & 3 deletions test/src/installer/completion_installation_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,10 @@ void main() {

installation.install('very_good');

verify(() => logger.level = Level.debug).called(1);
verify(() => logger.level = Level.info).called(1);

verify(
() => logger.detail(
() => logger.info(
'\n'
'Completion files installed. To enable completion, run the '
'following command in your shell:\n'
Expand Down Expand Up @@ -339,7 +339,7 @@ void main() {
verifyNever(() => logger.level = Level.debug);

verifyNever(
() => logger.detail(
() => logger.info(
'\n'
'Completion files installed. To enable completion, run the '
'following command in your shell:\n'
Expand Down

0 comments on commit 64da741

Please sign in to comment.