From 8974a2f07ac8d49082b890894e1577f4d6184242 Mon Sep 17 00:00:00 2001
From: leoafarias <leokcta@gmail.com>
Date: Thu, 16 Jul 2020 19:13:10 -0400
Subject: [PATCH] version bump

---
 CHANGELOG.md                |  6 ++++++
 README.md                   | 17 +++--------------
 lib/commands/config.dart    |  1 -
 lib/constants.dart          |  7 +++----
 lib/src/version.dart        |  2 +-
 lib/utils/config_utils.dart |  3 ++-
 pubspec.yaml                |  2 +-
 7 files changed, 16 insertions(+), 22 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3f6acdb1..263b290c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,11 @@
 # Changelog
 
+## 1.1.0
+
+- Implemented --force flag on `use` command to bypass guards if needed.
+- Set where fvm caches versions using FVM_HOME environment variable
+- Deprecated --cache-path in favor of FVM_HOME
+
 ## 1.0.4
 
 - Indicates global version on list command.
diff --git a/README.md b/README.md
index b4ded728..eae3a045 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
 
 ![Pub Version](https://img.shields.io/pub/v/fvm?label=version&style=flat-square)
 [![Likes](https://img.shields.io/badge/dynamic/json?color=blue&label=likes&query=likes&url=http://www.pubscore.gq/likes?package=fvm&style=flat-square&cacheSeconds=90000)](https://pub.dev/packages/fvm/likes)
-[![Health](https://img.shields.io/badge/dynamic/json?color=blue&label=health&query=pub_points&url=http://www.pubscore.gq/pub-points?package=fvm&style=flat-square&cacheSeconds=90000)](https://pub.dev/help#health) ![Coverage](https://raw.githubusercontent.com/leoafarias/fvm/master/coverage_badge.svg?sanitize=true) [![Github All Contributors](https://img.shields.io/github/all-contributors/leoafarias/fvm?style=flat-square)](https://github.com/leoafarias/fvm/graphs/contributors) [![MIT Licence](https://img.shields.io/github/license/leoafarias/fvm?style=flat-square&longCache=true)](https://opensource.org/licenses/mit-license.php) [![Awesome Flutter](https://img.shields.io/badge/awesome-flutter-purple?longCache=true&style=flat-square)](https://github.com/Solido/awesome-flutter)
+[![Health](https://img.shields.io/badge/dynamic/json?color=blue&label=health&query=pub_points&url=http://www.pubscore.gq/pub-points?package=fvm&style=flat-square&cacheSeconds=90000)](https://pub.dev/packages/fvm) ![Coverage](https://raw.githubusercontent.com/leoafarias/fvm/master/coverage_badge.svg?sanitize=true) [![Github All Contributors](https://img.shields.io/github/all-contributors/leoafarias/fvm?style=flat-square)](https://github.com/leoafarias/fvm/graphs/contributors) [![MIT Licence](https://img.shields.io/github/license/leoafarias/fvm?style=flat-square&longCache=true)](https://opensource.org/licenses/mit-license.php) [![Awesome Flutter](https://img.shields.io/badge/awesome-flutter-purple?longCache=true&style=flat-square)](https://github.com/Solido/awesome-flutter)
 
 Flutter Version Management: A simple cli to manage Flutter SDK versions.
 
@@ -114,19 +114,7 @@ Displays all Flutter releases, including the current version for `dev`, `beta` a
 
 ### Change FVM Cache Directory
 
-There are some configurations that allows for added flexibility on FVM. If no `cache-path` is set, the default fvm path will be used.
-
-```bash
-fvm config --cache-path <path-to-use>
-```
-
-### List Config Options
-
-Returns list of all stored options in the config file.
-
-```bash
-fvm config --ls
-```
+You are able to configure the **fvm** cache directory by setting `FVM_HOME` environment variable. If nothing is set the default **fvm** path will be used.
 
 ### Running Flutter SDK
 
@@ -241,6 +229,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
 
 <!-- markdownlint-enable -->
 <!-- prettier-ignore-end -->
+
 <!-- ALL-CONTRIBUTORS-LIST:END -->
 
 This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
diff --git a/lib/commands/config.dart b/lib/commands/config.dart
index 09b05e29..8eab4bba 100644
--- a/lib/commands/config.dart
+++ b/lib/commands/config.dart
@@ -13,7 +13,6 @@ class ConfigCommand extends Command {
   /// Constructor
   ConfigCommand() {
     argParser
-      ..addOption('defaultVersion', abbr: 'd', help: 'Flutter default version')
       ..addOption('cache-path',
           abbr: 'c', help: 'Path to store Flutter cached versions')
       ..addFlag('ls', help: 'Lists all config options');
diff --git a/lib/constants.dart b/lib/constants.dart
index a6516523..5d7d1a16 100644
--- a/lib/constants.dart
+++ b/lib/constants.dart
@@ -35,12 +35,11 @@ final kLocalProjectPubspec =
 String get fvmHome {
   final envVars = Platform.environment;
 
-  final fvmHome = envVars['FVM_HOME'];
-  if (fvmHome != null) {
-    return path.normalize(fvmHome);
+  var home = envVars['FVM_HOME'];
+  if (home != null) {
+    return path.normalize(home);
   }
 
-  var home = '';
   if (Platform.isWindows) {
     home = envVars['UserProfile'];
   } else {
diff --git a/lib/src/version.dart b/lib/src/version.dart
index 00bb7c44..cf2dd1f8 100644
--- a/lib/src/version.dart
+++ b/lib/src/version.dart
@@ -1,2 +1,2 @@
 // Generated code. Do not modify.
-const packageVersion = '1.0.4';
+const packageVersion = '1.1.0';
diff --git a/lib/utils/config_utils.dart b/lib/utils/config_utils.dart
index a4f6a0c5..876f3866 100644
--- a/lib/utils/config_utils.dart
+++ b/lib/utils/config_utils.dart
@@ -5,7 +5,7 @@ import 'package:fvm/constants.dart';
 import 'package:fvm/exceptions.dart';
 
 /// Configure fvm options.
-
+@deprecated
 class ConfigUtils {
   static ConfigUtils _instance;
 
@@ -57,6 +57,7 @@ class ConfigUtils {
   }
 
   /// config flutter stored path
+
   void configFlutterStoredPath(String path) {
     final type = FileSystemEntity.typeSync(path, followLinks: true);
     if (type == FileSystemEntityType.directory) {
diff --git a/pubspec.yaml b/pubspec.yaml
index 6d17f5e4..ed78f7b4 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,6 +1,6 @@
 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: 1.0.4
+version: 1.1.0
 homepage: https://github.com/leoafarias/fvm
 
 environment: