MCPcopy
hub / github.com/basecamp/once / renderActionComplete

Method renderActionComplete

internal/ui/settings.go:270–282  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

268}
269
270func (m Settings) renderActionComplete() string {
271 statusLine := Styles.CenteredLine(m.width, m.actionSuccessMessage)
272
273 buttonStyle := Styles.Button.BorderForeground(Colors.Focused)
274 button := mouse.Mark("done", buttonStyle.Render("Done"))
275 buttonView := lipgloss.NewStyle().
276 Width(m.width).
277 Align(lipgloss.Center).
278 MarginTop(1).
279 Render(button)
280
281 return lipgloss.JoinVertical(lipgloss.Left, statusLine, buttonView)
282}
283
284func (m Settings) runDeploy() tea.Cmd {
285 return func() tea.Msg {

Callers 1

ViewMethod · 0.95

Calls 2

MarkFunction · 0.92
CenteredLineMethod · 0.80

Tested by

no test coverage detected