summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-07-11 19:04:12 +0200
committerewy <ewy0@protonmail.com>2026-07-11 19:04:12 +0200
commitf7ecbb51b9649cd35419370cae626a1605bbc8c9 (patch)
tree499c58f39a7f866271009acbccd41add23454d9e
parent004f45e09114086e93b3f47adf1e3181f262ca96 (diff)
remove non-spool print callsHEADmaster
-rw-r--r--main.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/main.go b/main.go
index ceaa0ea..084945f 100644
--- a/main.go
+++ b/main.go
@@ -2,7 +2,6 @@ package main
import (
_ "embed"
- "fmt"
"git.sr.ht/~ewy/pik/cache"
"git.sr.ht/~ewy/pik/crawl"
"git.sr.ht/~ewy/pik/flags"
@@ -228,13 +227,13 @@ func pik() *spool.ExitCode {
}
if result.NeedsConfirmation || ForceConfirm {
- _, _ = fmt.Fprintf(os.Stderr, "this target is out of tree\n")
+ _, _ = spool.Warn("target is out of tree\n")
if !menu.Confirm(os.Stdin, result.Source, result.Target, result.Args...) {
return spool.Cancelled
}
}
if result.Overridden {
- _, _ = fmt.Fprintln(os.Stderr, menu.OverrideWarning(result.Target))
+ _, _ = spool.Warn("%s", menu.OverrideWarning(result.Target))
}
code = mode(selectionModes, func(mode func(st *model.State, src *model.Source, t model.Target) *spool.ExitCode) *spool.ExitCode {