diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2022-12-22 11:21:29 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-22 11:21:29 +1100 |
| commit | e3e31e3cbc2a2c030dc51f7cd6a15ccdfc956873 (patch) | |
| tree | b22c67ac62a9a44334328576a1b957716fdf7eb7 /internal/commands/errors.go | |
| parent | 0732e60e16c61391d57b34313812e12fb5f08701 (diff) | |
refactor(commands): command context (#4539)
This moves a lot of machinery for commands into a context.Context with other struct values. This allows for PreRunE's to reliably load the configuration and avoids use of global vars.
Diffstat (limited to 'internal/commands/errors.go')
| -rw-r--r-- | internal/commands/errors.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/commands/errors.go b/internal/commands/errors.go index 481053c33..5a6353fa7 100644 --- a/internal/commands/errors.go +++ b/internal/commands/errors.go @@ -6,3 +6,6 @@ import ( // ErrStdinIsNotTerminal is returned when Stdin is not an interactive terminal. var ErrStdinIsNotTerminal = errors.New("stdin is not a terminal") + +// ErrConfirmationMismatch is returned when user input does not match the confirmation prompt. +var ErrConfirmationMismatch = errors.New("user input didn't match the confirmation prompt") |
