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

Method barWidth

internal/command/cli_progress.go:108–112  ·  view source on GitHub ↗

Private

()

Source from the content-addressed store, hash-verified

106// Private
107
108func (m *cliProgress) barWidth() int {
109 prefixWidth := len(m.label) + 1 + len(m.stage) + 2 // " " + stage + ": "
110 w := max(m.width-prefixWidth, 10)
111 return w
112}
113
114func (m *cliProgress) runTask() tea.Cmd {
115 return func() tea.Msg {

Callers 1

UpdateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected