Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
hirenko-v authored Sep 21, 2024
1 parent 92690a1 commit 2f1301b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/msg/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type Option struct {
Flags []string `json:"flags"`
Description string `json:"description"`
Values []string `json:"values,omitempty"`
Default bool `json:"default,omitempty"`
Default string `json:"default,omitempty"`
}

type ScriptOutput struct {
Expand Down Expand Up @@ -250,6 +250,10 @@ func showBothSelects(state map[string]string) executor.ExecuteOutput {
Options: dropdownOptions,
},
},
InitialOption: &api.OptionItem{
Name: option.Default, // Get first selection from state
Value: fmt.Sprintf("%s %s" ,option.Flags[0], option.Default),
},
})
}

Expand Down

0 comments on commit 2f1301b

Please sign in to comment.