tfv 4.0.2 → 4.0.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
@@ -42,8 +42,8 @@ tfv -h
42
42
  tfv <command>
43
43
 
44
44
  Commands:
45
- tfv install <version> Example: tfv install 1.0.11 [aliases: i]
46
- tfv list [option] Example: tfv list --local [aliases: ls]
45
+ tfv install <version> [option] Example: tfv install 1.0.11 [aliases: i]
46
+ tfv list [option] Example: tfv list [aliases: ls]
47
47
  tfv remove <version> Example: tfv rm 1.0.11 [aliases: rm]
48
48
  tfv auto-switch Example: tfv as [aliases: as]
49
49
  tfv use <version> Example: tfv use 1.0.11
@@ -53,12 +53,14 @@ Options:
53
53
  -v, --version Show version number [boolean]
54
54
  ```
55
55
 
56
+ # Usage
57
+
58
+ https://github.com/marcdomain/tfv/assets/25563661/fa44f0f2-2dca-4f22-9fea-c74e4b8f767c
56
59
 
57
60
  # Table of Contents
58
61
 
59
62
  <!--ts-->
60
63
  * [Table of Contents](#table-of-contents)
61
- * [Usage](#usage)
62
64
  * [Modules](#modules)
63
65
  * [install](#install)
64
66
  * [use](#use)
@@ -67,10 +69,6 @@ Options:
67
69
  * [auto-switch](#auto-switch)
68
70
  <!--te-->
69
71
 
70
- ## Usage
71
-
72
- https://user-images.githubusercontent.com/25563661/209584148-05a86ee1-f497-4c6d-9894-d9cb464ef5b8.mp4
73
-
74
72
  ### Modules
75
73
 
76
74
  - #### _INSTALL_
@@ -86,13 +84,7 @@ https://user-images.githubusercontent.com/25563661/209584148-05a86ee1-f497-4c6d-
86
84
  tfv install <version>
87
85
  ```
88
86
 
89
- Run with alias
90
-
91
- ```sh
92
- tfv i <version> -a <system-architecture>
93
- ```
94
-
95
- Run with system-architecture option
87
+ Run with option
96
88
 
97
89
  ```sh
98
90
  tfv install <version> --arch <system-architecture>
@@ -117,7 +109,7 @@ tfv install 1.5.7 -arch amd64
117
109
  tfv use <version>
118
110
  ```
119
111
 
120
- > **_NOTE:_** If you're using windows OS, you would be prompted for admin privilege. Accept it. This is a one-time request to set terraform location in you system path. Unix machines would also get password prompt, as this requires permission to copy terraform to your bin directory.
112
+ > **_NOTE:_** You would get a password prompt. Accept it. This is a one-time request to set the terraform executable in your system path.
121
113
 
122
114
  - #### _LIST_
123
115
 
@@ -93,7 +93,7 @@ exports.install = async (installVersion, sysArchitecture) => {
93
93
 
94
94
  return new Promise((resolve, reject) => {
95
95
  const req = https.get(url, (res) => {
96
- console.log(`${P_INFO}Installing terraform ${version}${P_END}`);
96
+ console.log(`${P_INFO}Installing terraform ${version} (for ${archOption} architecture) ${P_END}`);
97
97
 
98
98
  const fileStream = createWriteStream(fileName);
99
99
  res.pipe(fileStream);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tfv",
3
- "version": "4.0.2",
3
+ "version": "4.0.4",
4
4
  "description": "Terraform version manager",
5
5
  "main": "index.js",
6
6
  "directories": {