shuttle
shuttle copied to clipboard
feat(cargo-shuttle): Add `upgrade` subcommand to run install script
Description of change
Adds a function that spawns a child process running the install command, using conditional compilation based on target family (unix vs windows). Closes #1840
How has this been tested? (if applicable)
- Ran
cargo run --bin cargo-shuttle -- upgradeon Windows- With latest
cargo-shuttleinstalled: got the expected message that mycargo-shuttleversion is latest from binstall - Without
cargo-shuttle, withcargo-binstall: got output from binstall that binary was downloaded from GitHub - Without
cargo-shuttleandcargo-binstall: directly downloads binary which works (I realise we didn't add the prompts to the powershell version)
- With latest
- Ran
cargo run --bin cargo-shuttle -- upgradeon Ubuntu- With latest
cargo-shuttleinstalled: got the expected message that mycargo-shuttleversion is up-to-date from the bash script - Without
cargo-shuttle, withcargo-binstall: got output from binstall that binary was downloaded from GitHub - Without
cargo-shuttleandcargo-binstall: got prompts to download binary directly which works, and to install from source via cargo which also works
- With latest
Can you also test the interactivity of the subprocess, i.e. that the y/n prompts work as intended when you don't have cargo-binstall?
Thanks for the reminder, just ran through the other scenarios and updated my comment.