<#108 chore(install): make installer verbose> Pull...
# pact-ruby-standalone
g
#108 chore(install): make installer verbose Pull request opened by YOU54F Provide a slicker experience for users when downloading via a script 1. Tell user if they aren't using a fixed version of a tag, that they can pin a version with the
tag
env var 2. Tell user if it fails to download, unarchive or remove the downloaded archive 3. Tell user path to where executables are installed 4. Show user available commands 5. Ensure script valid against https://www.shellcheck.net/
Copy code
❯ ./install.sh
Thanks for downloading the latest release of pact-ruby-standalone v1.92.0.
-----
Note:
-----
You can download a fixed version by setting the tag environment variable eg tag=v1.92.0
example:
curl -fsSL <https://raw.githubusercontent.com/pact-foundation/pact-ruby-standalone/master/install.sh> | tag=v1.92.0 sh
-------------
Downloading:
-------------
downloaded pact-1.92.0-osx.tar.gz
unarchived pact-1.92.0-osx.tar.gz
removed pact-1.92.0-osx.tar.gz
pact-ruby-standalone v1.92.0 installed to /Users/saf/dev/pact-foundation/pact-ruby-standalone/pact
-------------------
available commands:
-------------------
pact
pact-broker
pact-message
pact-mock-service
pact-plugin-cli
pact-provider-verifier
pact-publish
pact-stub-service
pactflow
Copy code
tag=v2.0.1 ./install.sh
Thanks for downloading pact-ruby-standalone v2.0.1.
-------------
Downloading:
-------------
downloaded pact-2.0.1-osx-arm64.tar.gz
unarchived pact-2.0.1-osx-arm64.tar.gz
removed pact-2.0.1-osx-arm64.tar.gz
pact-ruby-standalone v2.0.1 installed to /Users/saf/dev/pact-foundation/pact-ruby-standalone/pact
-------------------
available commands:
-------------------
pact
pact-broker
pact-message
pact-mock-service
pact-plugin-cli
pact-provider-verifier
pact-publish
pact-stub-service
pactflow
Additional notes 1. Can be made
sh
compliant by • Changing
#!/bin/bash
to
#!/bin/sh
• Changing
[[ condition ]]
to
[ condition ]
pact-foundation/pact-ruby-standalone All checks have passed 7/7 successful checks