aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/mbf/main.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-04-17 16:46:49 +0900
committerOphestra <cat@gensokyo.uk>2026-04-17 16:46:49 +0900
commit90369861568d38737001f1d7e1304e6914675359 (patch)
treea0546950f7030dc1b807b8e8502dd070235d331b /cmd/mbf/main.go
parenta394971dd75d8ad0287197553d3717dfb1d11b74 (diff)
cmd/mbf: optionally ignore reply
An acknowledgement is not always required in this use case. This change also adds 64 bits of connection configuration for future expansion. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/mbf/main.go')
-rw-r--r--cmd/mbf/main.go21
1 files changed, 15 insertions, 6 deletions
diff --git a/cmd/mbf/main.go b/cmd/mbf/main.go
index abdc5e94..bee97b01 100644
--- a/cmd/mbf/main.go
+++ b/cmd/mbf/main.go
@@ -392,10 +392,11 @@ func main() {
{
var (
- flagDump string
- flagEnter bool
- flagExport string
- flagRemote bool
+ flagDump string
+ flagEnter bool
+ flagExport string
+ flagRemote bool
+ flagNoReply bool
)
c.NewCommand(
"cure",
@@ -474,8 +475,12 @@ func main() {
})
case flagRemote:
- pathname, err := cureRemote(ctx, &addr, rosa.Std.Load(p))
- if err == nil {
+ var flags uint64
+ if flagNoReply {
+ flags |= remoteNoReply
+ }
+ pathname, err := cureRemote(ctx, &addr, rosa.Std.Load(p), flags)
+ if !flagNoReply && err == nil {
log.Println(pathname)
}
return err
@@ -497,6 +502,10 @@ func main() {
&flagRemote,
"daemon", command.BoolFlag(false),
"Cure artifact on the daemon",
+ ).Flag(
+ &flagNoReply,
+ "no-reply", command.BoolFlag(false),
+ "Do not receive a reply from the daemon",
)
}