Skip to content

Commit

Permalink
fx
Browse files Browse the repository at this point in the history
  • Loading branch information
hirenko-v authored Sep 19, 2024
1 parent 33f60d1 commit a004652
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions cmd/msg/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),

Check failure on line 183 in cmd/msg/main.go

View workflow job for this annotation

GitHub Actions / Release

unknown field Plaintext in struct literal of type struct{Style api.SectionStyle "json:\"style,omitempty\" yaml:\"style\""; api.Base "json:\",inline\" yaml:\"base\""; Buttons api.Buttons "json:\"buttons,omitempty\" yaml:\"buttons\""; MultiSelect api.MultiSelect "json:\"multiSelect,omitempty\" yaml:\"multiSelect\""; Selects api.Selects "json:\"selects,omitempty\" yaml:\"selects\""; PlaintextInputs api.LabelInputs "json:\"plaintextInputs,omitempty\" yaml:\"plaintextInputs\""; TextFields api.TextFields "json:\"textFields,omitempty\" yaml:\"textFields\""; BulletLists api.BulletLists "json:\"bulletLists,omitempty\" yaml:\"bulletLists\""; Context api.ContextItems "json:\"context,omitempty\" yaml:\"context\""}
},
{
// 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"),
},
Expand Down

0 comments on commit a004652

Please sign in to comment.