Merge pull request '[agent/codex:gpt-5.4-mini] Read ~/spec/code/core/go/cli/RFC.md fully. Find features des...' (#90) from agent/read---spec-code-core-go-cli-rfc-md-full into dev
All checks were successful
Security Scan / security (push) Successful in 22s
All checks were successful
Security Scan / security (push) Successful in 22s
This commit is contained in:
commit
d7c416d257
2 changed files with 6 additions and 3 deletions
|
|
@ -69,14 +69,14 @@ func (c *CheckBuilder) String() string {
|
||||||
icon = c.style.Render(icon)
|
icon = c.style.Render(icon)
|
||||||
}
|
}
|
||||||
|
|
||||||
status := compileGlyphs(c.status)
|
name := Pad(compileGlyphs(c.name), 20)
|
||||||
|
status := Pad(compileGlyphs(c.status), 10)
|
||||||
if c.style != nil && c.status != "" {
|
if c.style != nil && c.status != "" {
|
||||||
status = c.style.Render(status)
|
status = c.style.Render(status)
|
||||||
}
|
}
|
||||||
name := compileGlyphs(c.name)
|
|
||||||
|
|
||||||
if c.duration != "" {
|
if c.duration != "" {
|
||||||
return Sprintf(" %s %-20s %-10s %s", icon, name, status, DimStyle.Render(compileGlyphs(c.duration)))
|
return Sprintf(" %s %s %s %s", icon, name, status, DimStyle.Render(compileGlyphs(c.duration)))
|
||||||
}
|
}
|
||||||
if status != "" {
|
if status != "" {
|
||||||
return Sprintf(" %s %s %s", icon, name, status)
|
return Sprintf(" %s %s %s", icon, name, status)
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,9 @@ func TestCheckBuilder(t *testing.T) {
|
||||||
if got == "" {
|
if got == "" {
|
||||||
t.Error("Empty output for Duration")
|
t.Error("Empty output for Duration")
|
||||||
}
|
}
|
||||||
|
if !strings.Contains(got, "foo ") {
|
||||||
|
t.Error("Expected width-aware padding for the check name")
|
||||||
|
}
|
||||||
|
|
||||||
// Message
|
// Message
|
||||||
c = Check("foo").Message("status")
|
c = Check("foo").Message("status")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue