Skip to content

Commit

Permalink
Merge pull request #289 from leoafarias/feature/preamble-on-verbose
Browse files Browse the repository at this point in the history
Preamble as a trace only
  • Loading branch information
leoafarias authored May 6, 2021
2 parents aad365c + 3fa2e14 commit 6a810b8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.0.4

- FVM only outputs information about version running when using `--verbose` [#288](https://github.com/leoafarias/fvm/issues/288)

## 2.0.3

- Fixes monorepo compatibility [#285](https://github.com/leoafarias/fvm/issues/285)
Expand Down
2 changes: 1 addition & 1 deletion lib/src/commands/flutter_command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class FlutterCommand extends BaseCommand {
// Will install version if not already instaled
final cacheVersion = await ensureCacheWorkflow(validVersion);

FvmLogger.info('fvm: running version "$version"\n');
logger.trace('fvm: running version "$version"\n');

// Runs flutter command with pinned version
return await flutterCmd(cacheVersion, args);
Expand Down
4 changes: 2 additions & 2 deletions lib/src/utils/commands.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ Future<int> flutterGlobalCmd(List<String> args) async {
// Get exec path for flutter
if (cacheVersion != null) {
execPath = cacheVersion.flutterExec;
FvmLogger.info(
logger.trace(
'FVM: Running global configured version "${cacheVersion.name}"',
);
} else {
execPath = whichSync('flutter') ?? '';
FvmLogger.info(
logger.trace(
'FVM: Running Flutter SDK configured on environment PATH. $execPath',
);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/src/version.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: fvm
description: A simple cli to manage Flutter SDK versions per project. Support
channels, releases, and local cache for fast switching between versions.
version: 2.0.3
version: 2.0.4
homepage: https://github.com/leoafarias/fvm

environment:
Expand Down

0 comments on commit 6a810b8

Please sign in to comment.