1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
package main
import (
"fmt"
tui "github.com/grindlemire/go-tui"
)
func main() {
fmt.Println("[2026-03-01 10:14:02] starting build...")
fmt.Println("[2026-03-01 10:14:02] compiling cmd/myapp")
fmt.Println("[2026-03-01 10:14:03] compiling internal/server")
fmt.Println("[2026-03-01 10:14:04] running tests...")
fmt.Println()
tui.Print(BuildReport("myapp", "PASS", "2.3s", 42, 42))
fmt.Println()
fmt.Println("[2026-03-01 10:14:06] uploading artifacts to s3://builds/myapp/latest")
fmt.Println("[2026-03-01 10:14:07] done.")
}
|