chore: restyled and removed typing effect 214f610a
Steve · 2026-11-08 23:01 2 file(s) · +8 −21
internal/style.go +5 −20
24 24
	return color + s + Reset
25 25
}
26 26
27 -
func PrintRows(rows []Row, typewriter bool) {
27 +
func PrintRows(rows []Row) {
28 28
	width := labelWidth(rows)
29 29
30 +
	fmt.Println()
30 31
	for _, row := range rows {
31 32
		label := Colorize(Bold+Green, fmt.Sprintf("%-*s", width, row.Key))
32 -
		line := label + " " + row.Value
33 +
		line := "  " + label + "    " + row.Value
33 34
34 -
		if typewriter {
35 -
			TypeString(line)
36 -
			fmt.Println() 
37 -
		} else {
38 -
			fmt.Println(line)
39 -
		}
35 +
		fmt.Println(line)
40 36
	}
37 +
	fmt.Println()
41 38
}
42 39
43 40
func labelWidth(rows []Row) int {
49 46
	}
50 47
	return width
51 48
}
52 -
53 -
func TypeString(s string) {
54 -
	for _, char := range s {
55 -
		fmt.Print(string(char))
56 -
57 -
		min := 20
58 -
		max := 130
59 -
		delay := time.Duration(rand.Intn(max-min)+min) * time.Millisecond
60 -
		time.Sleep(delay)
61 -
	}
62 -
	fmt.Print("\n")
63 -
}
main.go +3 −1
12 12
		system.GetMachine(),
13 13
		system.GetKernel(),
14 14
		system.GetDistro(),
15 +
		// DE
15 16
		system.GetPackages(),
16 17
		system.GetShell(),
17 18
		system.GetCpu(),
18 19
		system.GetMemory(),
19 20
		system.GetUptime(),
21 +
		// Colors
20 22
	}
21 -
	system.PrintRows(rows, false)
23 +
	system.PrintRows(rows)
22 24
}
23 25