1
1
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-10 21:01:02 +02:00

ui: add newlines to skipping messages

This commit is contained in:
Zack 2024-05-31 14:31:46 -07:00
parent 9246408278
commit a4322faa25
2 changed files with 3 additions and 3 deletions

View file

@ -1064,7 +1064,7 @@ func (c *Client) Receive() (err error) {
err = c.transfer()
if err == nil {
if c.numberOfTransferredFiles+len(c.EmptyFoldersToTransfer) == 0 {
fmt.Fprintf(os.Stderr, "\rNo files transferred.")
fmt.Fprintf(os.Stderr, "\rNo files transferred.\n")
}
}
return
@ -1780,7 +1780,7 @@ func (c *Client) updateIfRecipientHasFileInfo() (err error) {
}
choice := strings.ToLower(utils.GetInput(prompt))
if choice != "y" && choice != "yes" {
fmt.Fprintf(os.Stderr, "skipping '%s'", path.Join(fileInfo.FolderRemote, fileInfo.Name))
fmt.Fprintf(os.Stderr, "Skipping '%s'\n", path.Join(fileInfo.FolderRemote, fileInfo.Name))
continue
}
}

View file

@ -542,7 +542,7 @@ func UnzipDirectory(destination string, source string) error {
prompt := fmt.Sprintf("\nOverwrite '%s'? (y/N) ", filePath)
choice := strings.ToLower(GetInput(prompt))
if choice != "y" && choice != "yes" {
fmt.Fprintf(os.Stderr, "skipping '%s'", filePath)
fmt.Fprintf(os.Stderr, "Skipping '%s'\n", filePath)
continue
}
}