Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cli/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion util/fsutil/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down