add versionFromBuild() and sendCommands() to separate the logic in main() a little.

Flags now implements fmt.Stringer interface.

import lint fix
This commit is contained in:
2026-02-14 20:45:13 +00:00
parent b568767f86
commit acac22f70e
3 changed files with 73 additions and 22 deletions

2
go.mod
View File

@@ -25,7 +25,7 @@ require (
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-runewidth v0.0.19 // indirect
github.com/muesli/termenv v0.16.0 // indirect
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
github.com/pelletier/go-toml/v2 v2.0.9 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect