pulumi/sdk/go/common/util/cmdutil
Abhinav Gupta 615bd0f0e7
cmdutil: Support errors.Join-based multi-errors (#13813)
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.
2023-09-01 19:01:16 +00:00
..
testdata feat(cmdutil): TerminateProcessGroup for graceful termination (#13792) 2023-08-27 22:05:44 +00:00
args.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
child_unix.go Revert "resource/plugin: Shut down plugins gracefully (#13795)" (#13844) 2023-08-31 16:29:55 +00:00
child_windows.go Revert "resource/plugin: Shut down plugins gracefully (#13795)" (#13844) 2023-08-31 16:29:55 +00:00
console.go cmdutil.ReadConsole[NoEcho]: Use bubbletea (#13815) 2023-08-30 17:08:44 +00:00
console_password.go cmdutil.ReadConsole[NoEcho]: Use bubbletea (#13815) 2023-08-30 17:08:44 +00:00
console_test.go cmdutil.ReadConsole[NoEcho]: Use bubbletea (#13815) 2023-08-30 17:08:44 +00:00
diag.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
exit.go cmdutil: Support errors.Join-based multi-errors (#13813) 2023-09-01 19:01:16 +00:00
exit_test.go cmdutil: Support errors.Join-based multi-errors (#13813) 2023-09-01 19:01:16 +00:00
profile.go [cli] Better memory profiling 2023-05-25 09:20:12 -07:00
spinner.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
term.go feat(cmdutil): TerminateProcessGroup for graceful termination (#13792) 2023-08-27 22:05:44 +00:00
term_test.go feat(cmdutil): TerminateProcessGroup for graceful termination (#13792) 2023-08-27 22:05:44 +00:00
term_unix.go feat(cmdutil): TerminateProcessGroup for graceful termination (#13792) 2023-08-27 22:05:44 +00:00
term_windows.go feat(cmdutil): TerminateProcessGroup for graceful termination (#13792) 2023-08-27 22:05:44 +00:00
trace.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00