diff --git a/cmd/msg/main.go b/cmd/msg/main.go index d620b18..85d5bc8 100644 --- a/cmd/msg/main.go +++ b/cmd/msg/main.go @@ -262,15 +262,11 @@ func showBothSelects(state map[string]string) executor.ExecuteOutput { // Create multiple dropdowns based on the options in the script output for _, option := range scriptOutput.Options { // Skip the help options (-h, --help) - if option.Flags[0] == "-h" { - continue - } - - // Construct the flag key for the state - flagKey := fmt.Sprintf("%s-%s", state["first"], option.Flags[0]) - if option.Type == "bool" || option.Type == "dropdown" { + // Construct the flag key for the state + flagKey := fmt.Sprintf("%s-%s", state["first"], option.Flags[0]) + var dropdownOptions []api.OptionItem boolValues := []string{"true", "false"} values := option.Values; if option.Type == "bool" { values = boolValues } @@ -310,7 +306,10 @@ func showBothSelects(state map[string]string) executor.ExecuteOutput { InitialOption: initialOption, }) } + } + for _, option := range scriptOutput.Options { if option.Type == "text" { + flagKey := fmt.Sprintf("%s-%s", state["first"], option.Flags[0]) sections[0].PlaintextInputs = append(sections[0].PlaintextInputs, api.LabelInput{ Command: cmdPrefix(fmt.Sprintf("select_dynamic %s %s ", flagKey, option.Flags[0])), Text: option.Description,