mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-21 23:01:03 +00:00
main: nicer --version output
This commit is contained in:
parent
c99bdaa5ff
commit
8024ba77f1
1 changed files with 10 additions and 1 deletions
11
main.go
11
main.go
|
|
@ -27,6 +27,15 @@ var (
|
|||
)
|
||||
|
||||
func main() {
|
||||
info := fmt.Sprintf(
|
||||
"%s\nDate: %s\nBuildSource: %s\nCommit: %s\nOS: %s\nArch: %s",
|
||||
version,
|
||||
date,
|
||||
buildSource,
|
||||
commit,
|
||||
runtime.GOOS,
|
||||
runtime.GOARCH,
|
||||
)
|
||||
|
||||
flaggy.SetName("lazydocker")
|
||||
flaggy.SetDescription("The lazier way to manage everything docker")
|
||||
|
|
@ -35,7 +44,7 @@ func main() {
|
|||
flaggy.Bool(&configFlag, "c", "config", "Print the current default config")
|
||||
flaggy.Bool(&debuggingFlag, "d", "debug", "a boolean")
|
||||
flaggy.StringSlice(&composeFiles, "f", "file", "Specify alternate compose files")
|
||||
flaggy.SetVersion(fmt.Sprintf("commit=%s, build date=%s, build source=%s, version=%s, os=%s, arch=%s\n", commit, date, buildSource, version, runtime.GOOS, runtime.GOARCH))
|
||||
flaggy.SetVersion(info)
|
||||
|
||||
flaggy.Parse()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue