mirror of
https://github.com/FiloSottile/age.git
synced 2026-05-29 11:40:18 +00:00
all: run "go fix"
This commit is contained in:
@@ -566,13 +566,13 @@ func (p *Plugin) Confirm(prompt, yes, no string) (choseYes bool, err error) {
|
||||
|
||||
// fatalInteractf prints the error to stderr and sets the broken flag, so the
|
||||
// Wrap/Unwrap caller can exit with an error.
|
||||
func (p *Plugin) fatalInteractf(format string, args ...interface{}) error {
|
||||
func (p *Plugin) fatalInteractf(format string, args ...any) error {
|
||||
p.broken = true
|
||||
fmt.Fprintf(p.stderr, format, args...)
|
||||
return fmt.Errorf(format, args...)
|
||||
}
|
||||
|
||||
func (p *Plugin) fatalf(format string, args ...interface{}) int {
|
||||
func (p *Plugin) fatalf(format string, args ...any) int {
|
||||
fmt.Fprintf(p.stderr, format, args...)
|
||||
return 1
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
// The terminal is reached directly through /dev/tty or CONIN$/CONOUT$,
|
||||
// bypassing standard input and output, so this UI can be used even when
|
||||
// standard input or output are redirected.
|
||||
func NewTerminalUI(printf, warningf func(format string, v ...interface{})) *ClientUI {
|
||||
func NewTerminalUI(printf, warningf func(format string, v ...any)) *ClientUI {
|
||||
return &ClientUI{
|
||||
DisplayMessage: func(name, message string) error {
|
||||
printf("%s plugin: %s", name, message)
|
||||
|
||||
Reference in New Issue
Block a user