tfv 3.2.3 → 3.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -24,6 +24,36 @@ Run with alias
24
24
  npm i -g tfv
25
25
  ```
26
26
 
27
+ ## Help
28
+
29
+ ```sh
30
+ tfv --help
31
+ ```
32
+
33
+ Run with alias
34
+
35
+ ```sh
36
+ tfv -h
37
+ ```
38
+
39
+ > **_OUTPUT:_**
40
+
41
+ ```
42
+ tfv <command>
43
+
44
+ Commands:
45
+ tfv install <version> Example: tfv install 1.0.11 [aliases: i]
46
+ tfv list [option] Example: tfv list --local [aliases: ls]
47
+ tfv remove <version> Example: tfv rm 1.0.11 [aliases: rm]
48
+ tfv auto-switch Example: tfv as [aliases: as]
49
+ tfv use <version> Example: tfv use 1.0.11
50
+
51
+ Options:
52
+ -h, --help Show help [boolean]
53
+ -v, --version Show version number [boolean]
54
+ ```
55
+
56
+
27
57
  # Table of Contents
28
58
 
29
59
  <!--ts-->
@@ -39,7 +69,7 @@ npm i -g tfv
39
69
 
40
70
  ## Usage
41
71
 
42
- <https://user-images.githubusercontent.com/25563661/142188036-4f2a8b65-1a3e-4298-95e0-9ed533c66a18.mp4>
72
+ https://user-images.githubusercontent.com/25563661/209584148-05a86ee1-f497-4c6d-9894-d9cb464ef5b8.mp4
43
73
 
44
74
  ### Modules
45
75
 
@@ -43,7 +43,7 @@ exports.autoSwitch = async () => {
43
43
  const inStore = fs.readdirSync(store).find(v => v.startsWith(tfVersion));
44
44
 
45
45
  if (inStore) {
46
- await use(inStore);
46
+ await use(inStore.replace('.exe', ''));
47
47
  } else {
48
48
  const version = await install(`${tfVersion}^`);
49
49
  await use(version);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tfv",
3
- "version": "3.2.3",
3
+ "version": "3.3.4",
4
4
  "description": "Terraform version manager",
5
5
  "main": "index.js",
6
6
  "directories": {