mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
* Updated `upgrade` to return error when used with cmd arguments - Updated `upgrade` command to check for command-line arguments and return an error if so providing a suggested `update` command. * added test * updated condition to allow * Upgrade argument check now only checks if all arguments contain `--` - Added more tests * Using `cpSync` in the following context results in an "Is a directory" error * Update message displayed back to user Co-authored-by: dave caruso <me@paperdave.net> * moved args check to upgrade_command.zig * fixed broken tests * changing string interpolation to join() for paths * [autofix.ci] apply automated fixes * Fixed build errors - Removed call to `std.mem.span` - Added conditional to only run if there's more than 2 arguments (ignores the exec and `upgrade`) - Added new test to ensure `upgrade` runs with 0 arguments passed --------- Co-authored-by: dave caruso <me@paperdave.net> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>