Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
hirenko-v authored Sep 20, 2024
1 parent 3a1e6bc commit 5aa28e2
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions cmd/msg/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,20 +230,20 @@ func showBothSelects(firstSelection, secondSelection string) executor.ExecuteOut
}
// Create multiple dropdowns based on the options in the script output
for _, option := range scriptOutput.Options {

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

View workflow job for this annotation

GitHub Actions / Release

option declared and not used
var dropdownOptions []api.OptionItem
if option.Flags[0] != "-h" {
for _, value := range option.Values {
dropdownOptions = append(dropdownOptions, api.OptionItem{
Name: value,
Value: value,
})
}
}
// var dropdownOptions []api.OptionItem
// if option.Flags[0] != "-h" {
// for _, value := range option.Values {
// dropdownOptions = append(dropdownOptions, api.OptionItem{
// Name: value,
// Value: value,
// })
// }
// }

// Add each dynamic dropdown to the section
sections[0].Selects.Items = append(sections[0].Selects.Items, api.Select{
Name: "second",
Command: cmdPrefix("select_second"),
sections[0].Selects.Items = append(sections[0].Selects.Items, api.Select{
Name: "second",
Command: cmdPrefix("select_second"),
OptionGroups: []api.OptionGroup{
{
Name: "Second Group",
Expand All @@ -253,7 +253,7 @@ func showBothSelects(firstSelection, secondSelection string) executor.ExecuteOut
},
},
},
})
})
}

// sections[0].Selects.Items = append(sections[0].Selects.Items, api.Select{
Expand Down

0 comments on commit 5aa28e2

Please sign in to comment.