From 90369861568d38737001f1d7e1304e6914675359 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 17 Apr 2026 16:46:49 +0900 Subject: 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 --- cmd/mbf/main.go | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'cmd/mbf/main.go') 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", ) } -- cgit v1.3.1