MCPcopy
hub / github.com/cli/cli / createModal

Method createModal

pkg/cmd/extension/browse/browse.go:133–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131}
132
133func (el *extList) createModal() *tview.Modal {
134 m := tview.NewModal()
135 m.SetBackgroundColor(tcell.ColorPurple)
136 m.SetDoneFunc(func(_ int, _ string) {
137 el.ui.Pages.SwitchToPage("main")
138 el.Refresh()
139 })
140
141 return m
142}
143
144func (el *extList) toggleSelected(verb string) {
145 ee, ix := el.FindSelected()

Callers 1

toggleSelectedMethod · 0.95

Calls 1

RefreshMethod · 0.95

Tested by

no test coverage detected