Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
hirenko-v authored Sep 19, 2024
1 parent 1a55f99 commit 6e46b39
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions cmd/msg/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

const (
description = "Msg sends an example interactive messages."
description = "Msg sends an example interactive message."
pluginName = "msg"
)

Expand Down Expand Up @@ -91,15 +91,6 @@ func initialMessages() executor.ExecuteOutput {

return executor.ExecuteOutput{
Message: api.Message{
BaseBody: api.Body{
TextFields: api.TextFields{
{
Label: "Select an option from the first dropdown",
Value: "Showcases interactive message capabilities.",
Markdown: true,
},
},
},
Sections: []api.Section{
{
Selects: api.Selects{
Expand Down Expand Up @@ -138,13 +129,9 @@ func updateDropdowns(selections map[string]string) executor.ExecuteOutput {
fullCommand := buildFullCommand(selections)
return executor.ExecuteOutput{
Message: api.Message{
BaseBody: api.Body{
TextFields: api.TextFields{
{
Label: "Full command",
Value: fullCommand,
Markdown: true,
},
Context: api.ContextItems{

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

View workflow job for this annotation

GitHub Actions / Release

unknown field Context in struct literal of type api.Message
{
Text: fullCommand,
},
},
Sections: []api.Section{
Expand Down

0 comments on commit 6e46b39

Please sign in to comment.