diff --git a/README.md b/README.md index 297cd1f..0df793a 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,7 @@ Use "tpm [command] --help" for more information about a command. ### Install a provider -To install a provider you only need to provide the name. Optionally, you can specify a version by using `@`. By default, if no version is specified, the latest avaiable version, also known as `@latest`, will be installed. +To install a provider you only need to provide the name. Optionally, you can specify a version by using `@`. By default, if no version is specified, the latest available version, also known as `@latest`, will be installed. You can also specify the architecture and operating system. If not specified, the information from the system where tpm is being executed will be used. @@ -93,6 +93,13 @@ In addition, it's possible to install multiple providers at once specifying a `p ```yaml providers: - name: hashicorp/aws@3.64.0 + - name: hashicorp/http@3.3.0 + os: + - linux + - darwin + arch: + - amd64 + - arm64 - name: hashicorp/random os: - linux @@ -104,6 +111,8 @@ providers: Install providers from file +The providers are installed in parallel by default. You can adjust the number of parallel jobs by using the `--jobs ` flag. + ### List installed providers This will display on the screen the installed providers. Optionally, you can specify an output format. Valid output formats are: diff --git a/docs/gif/demo.gif b/docs/gif/demo.gif index 7b968b4..4dd6106 100644 Binary files a/docs/gif/demo.gif and b/docs/gif/demo.gif differ diff --git a/docs/gif/demo.tape b/docs/gif/demo.tape index 40eae5c..aa56210 100644 --- a/docs/gif/demo.tape +++ b/docs/gif/demo.tape @@ -1,10 +1,16 @@ Output demo.gif -Set FontSize 24 +Set FontSize 26 Set Width 1200 -Set Height 400 +Set Height 350 -Type "tpm install hashicorp/http@3.2.1" +Type "tpm install hashicorp/aws@4.67.0" +Sleep 500ms +Enter +Sleep 5s + +Ctrl+L +Type "tpm install --from-file providers.yml" Sleep 500ms Enter Sleep 4s diff --git a/docs/gif/install-from-file.gif b/docs/gif/install-from-file.gif index 1fbaf5f..89dd795 100644 Binary files a/docs/gif/install-from-file.gif and b/docs/gif/install-from-file.gif differ diff --git a/docs/gif/install-from-file.tape b/docs/gif/install-from-file.tape index fbfa111..98369a4 100644 --- a/docs/gif/install-from-file.tape +++ b/docs/gif/install-from-file.tape @@ -2,7 +2,7 @@ Output install-from-file.gif Set FontSize 20 Set Width 1200 -Set Height 600 +Set Height 400 Type "tpm install --from-file examples/01-basic.yml" Sleep 500ms diff --git a/docs/gif/install.gif b/docs/gif/install.gif index f2755be..46f4606 100644 Binary files a/docs/gif/install.gif and b/docs/gif/install.gif differ diff --git a/docs/gif/install.tape b/docs/gif/install.tape index 15f4f87..bc850c9 100644 --- a/docs/gif/install.tape +++ b/docs/gif/install.tape @@ -2,12 +2,12 @@ Output install.gif Set FontSize 20 Set Width 1200 -Set Height 600 +Set Height 350 Type "tpm install hashicorp/aws" Sleep 500ms Enter -Sleep 8s +Sleep 5s Ctrl+L Type "tpm install hashicorp/aws@latest" diff --git a/docs/gif/uninstall.gif b/docs/gif/uninstall.gif index 42a9955..354302b 100644 Binary files a/docs/gif/uninstall.gif and b/docs/gif/uninstall.gif differ diff --git a/docs/gif/uninstall.tape b/docs/gif/uninstall.tape index 7f22fa3..a034c5f 100644 --- a/docs/gif/uninstall.tape +++ b/docs/gif/uninstall.tape @@ -2,7 +2,7 @@ Output uninstall.gif Set FontSize 20 Set Width 1200 -Set Height 600 +Set Height 300 Type "tpm uninstall hashicorp/aws" Sleep 500ms diff --git a/examples/02-multi-os-arch.yml b/examples/02-multi-os-arch.yml index 9d5ea23..f54ff65 100644 --- a/examples/02-multi-os-arch.yml +++ b/examples/02-multi-os-arch.yml @@ -4,6 +4,13 @@ providers: - windows arch: - amd64 + - name: hashicorp/http@3.3.0 + os: + - linux + - darwin + arch: + - amd64 + - arm64 - name: hashicorp/random os: - linux