diff --git a/cli/command.go b/cli/command.go index 502adf90..897b5de6 100644 --- a/cli/command.go +++ b/cli/command.go @@ -67,6 +67,7 @@ func quotedArgs(args []string) string { func Prompt(question string) bool { fmt.Print(question) fmt.Print("? [y/N] ") + fmt.Print("\033[0m") // reset all formatting modes (if any) used by the question string var answer string _, _ = fmt.Scanln(&answer) diff --git a/util/fsutil/fs.go b/util/fsutil/fs.go index 5c8a2d9f..247d0d94 100644 --- a/util/fsutil/fs.go +++ b/util/fsutil/fs.go @@ -34,7 +34,7 @@ func (DefaultFS) Open(name string) (fs.File, error) { return os.Open(name) } func (DefaultFS) MkdirAll(path string, perm fs.FileMode) error { return os.MkdirAll(path, perm) } // FakeFS is a mock FS. The following can be done in a test before usage. -// osutil.FS = osutil.FakeFS +// osutil.FS = osutil.FakeFS var FakeFS FileSystem = fakeFS{} type fakeFS struct{}