From a0046522d1d48f1ddf6cf934a8408b921495e911 Mon Sep 17 00:00:00 2001 From: hirenko-v <132065511+hirenko-v@users.noreply.github.com> Date: Thu, 19 Sep 2024 17:52:56 +0300 Subject: [PATCH] fx --- cmd/msg/main.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cmd/msg/main.go b/cmd/msg/main.go index 104e10b..ec4828e 100644 --- a/cmd/msg/main.go +++ b/cmd/msg/main.go @@ -179,14 +179,13 @@ func updateDropdowns(selections map[string]string) executor.ExecuteOutput { }, }, { - // Text message with the command to be executed - Plaintext: fullCommand, + // Add a message section for command preview + Plaintext: fmt.Sprintf("Full command to execute:\n%s", fullCommand), }, { - // Button to run the command - Actions: []api.Action{ + // Assuming `api.Buttons` or similar type is available + Buttons: []api.Button{ { - Type: "button", Name: "Run command", Command: fmt.Sprintf("%s %s %s", api.MessageBotNamePlaceholder, pluginName, "run_command"), },