mirror of https://github.com/pulumi/pulumi.git
615bd0f0e7
cmdutil has some special handling for hashicorp/go-multierror so that multi-errors are printed cleanly in the form: %d errors occurred: 1) foo 2) bar ... In Go 1.20, the errors package got a native `errors.Join` function. This adds support for errors.Join-based multi-errors to this logic. These errors implement an `Unwrap() []error` method which can be used to access the full list of errors. We use that and then implement the same logic for formatting as before. |
||
---|---|---|
.. | ||
testdata | ||
args.go | ||
child_unix.go | ||
child_windows.go | ||
console.go | ||
console_password.go | ||
console_test.go | ||
diag.go | ||
exit.go | ||
exit_test.go | ||
profile.go | ||
spinner.go | ||
term.go | ||
term_test.go | ||
term_unix.go | ||
term_windows.go | ||
trace.go |