Skip to content

Commit

Permalink
Bumped version for consistency with past Golang version, and improved…
Browse files Browse the repository at this point in the history
… error message. Closes #13
  • Loading branch information
leoafarias committed Oct 8, 2019
1 parent 37b8893 commit 36a4a80
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/commands/list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ListCommand extends Command {
Future<void> run() async {
final choices = await flutterListInstalledSdks();
if (choices.length == 0) {
logger.stdout('No SDKs have been installed.');
logger.stdout('No SDKs have been installed yet.');
exit(0);
}

Expand Down
3 changes: 3 additions & 0 deletions lib/utils/flutter_tools.dart
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ Future<void> flutterSdkRemove(String version) async {

/// Lists Installed Flutter SDK Version
Future<List<String>> flutterListInstalledSdks() async {
if (!await kVersionsDir.exists()) {
return [];
}
final versions = kVersionsDir.listSync();

final installedVersions = versions
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: fvm
description: A simple version manager for Flutter.
version: 0.0.5
version: 0.6.0
homepage: https://github.com/leoafarias/fvm
author: Leo Farias <[email protected]>

Expand Down

0 comments on commit 36a4a80

Please sign in to comment.