oops I used the wrong print
This commit is contained in:
parent
b6cb6df999
commit
0fd14c1949
10
main.go
10
main.go
|
@ -123,7 +123,7 @@ var (
|
||||||
} else {
|
} else {
|
||||||
msg = "no files to show"
|
msg = "no files to show"
|
||||||
}
|
}
|
||||||
fmt.Fprint(os.Stdout, msg)
|
fmt.Fprintln(os.Stdout, msg)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
selected, mode, err = interactive.Select(infiles, termwidth, termheight, false, false, false, workdir, modes.Interactive)
|
selected, mode, err = interactive.Select(infiles, termwidth, termheight, false, false, false, workdir, modes.Interactive)
|
||||||
|
@ -221,7 +221,7 @@ var (
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if len(fls) == 0 {
|
if len(fls) == 0 {
|
||||||
fmt.Fprintf(os.Stdout, "no files to trash")
|
fmt.Fprintln(os.Stdout, "no files to trash")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
filesToTrash = append(filesToTrash, fls...)
|
filesToTrash = append(filesToTrash, fls...)
|
||||||
|
@ -262,7 +262,7 @@ var (
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(fls) == 0 {
|
if len(fls) == 0 {
|
||||||
fmt.Fprint(os.Stdout, msg)
|
fmt.Fprintln(os.Stdout, msg)
|
||||||
return nil
|
return nil
|
||||||
} else if err != nil {
|
} else if err != nil {
|
||||||
return err
|
return err
|
||||||
|
@ -287,7 +287,7 @@ var (
|
||||||
// look for files
|
// look for files
|
||||||
fls, err := files.FindTrash(trashDir, ogdir, fltr)
|
fls, err := files.FindTrash(trashDir, ogdir, fltr)
|
||||||
if len(fls) == 0 {
|
if len(fls) == 0 {
|
||||||
fmt.Fprintf(os.Stdout, "no files to restore")
|
fmt.Fprintln(os.Stdout, "no files to restore")
|
||||||
return nil
|
return nil
|
||||||
} else if err != nil {
|
} else if err != nil {
|
||||||
return err
|
return err
|
||||||
|
@ -315,7 +315,7 @@ var (
|
||||||
Action: func(_ *cli.Context) error {
|
Action: func(_ *cli.Context) error {
|
||||||
fls, err := files.FindTrash(trashDir, ogdir, fltr)
|
fls, err := files.FindTrash(trashDir, ogdir, fltr)
|
||||||
if len(fls) == 0 {
|
if len(fls) == 0 {
|
||||||
fmt.Fprintf(os.Stdout, "no files to clean")
|
fmt.Fprintln(os.Stdout, "no files to clean")
|
||||||
return nil
|
return nil
|
||||||
} else if err != nil {
|
} else if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in a new issue