diff --git a/internal/app/wwctl/version/main.go b/internal/app/wwctl/version/main.go index 3577036b..50387ef6 100644 --- a/internal/app/wwctl/version/main.go +++ b/internal/app/wwctl/version/main.go @@ -10,20 +10,20 @@ import ( func CobraRunE(cmd *cobra.Command, args []string) error { if ListFull { - fmt.Printf("%-20s %-18s\n", "VERSION:", version.GetVersion()) - fmt.Printf("%-20s %-18s\n", "BINDIR:", buildconfig.BINDIR()) - fmt.Printf("%-20s %-18s\n", "DATADIR:", buildconfig.DATADIR()) - fmt.Printf("%-20s %-18s\n", "SYSCONFDIR:", buildconfig.SYSCONFDIR()) - fmt.Printf("%-20s %-18s\n", "LOCALSTATEDIR:", buildconfig.LOCALSTATEDIR()) - fmt.Printf("%-20s %-18s\n", "SRVDIR:", buildconfig.SRVDIR()) - fmt.Printf("%-20s %-18s\n", "TFTPDIR:", buildconfig.TFTPDIR()) - fmt.Printf("%-20s %-18s\n", "SYSTEMDDIR:", buildconfig.SYSTEMDDIR()) - fmt.Printf("%-20s %-18s\n", "WWOVERLAYDIR:", buildconfig.WWOVERLAYDIR()) - fmt.Printf("%-20s %-18s\n", "WWCHROOTDIR:", buildconfig.WWCHROOTDIR()) - fmt.Printf("%-20s %-18s\n", "WWPROVISIONDIR:", buildconfig.WWPROVISIONDIR()) - fmt.Printf("%-20s %-18s\n", "BASEVERSION:", buildconfig.VERSION()) - fmt.Printf("%-20s %-18s\n", "RELEASE:", buildconfig.RELEASE()) - fmt.Printf("%-20s %-18s\n", "WWCLIENTDIR:", buildconfig.WWCLIENTDIR()) + fmt.Printf("%s=%s\n", "VERSION", version.GetVersion()) + fmt.Printf("%s=%s\n", "BINDIR", buildconfig.BINDIR()) + fmt.Printf("%s=%s\n", "DATADIR", buildconfig.DATADIR()) + fmt.Printf("%s=%s\n", "SYSCONFDIR", buildconfig.SYSCONFDIR()) + fmt.Printf("%s=%s\n", "LOCALSTATEDIR", buildconfig.LOCALSTATEDIR()) + fmt.Printf("%s=%s\n", "SRVDIR", buildconfig.SRVDIR()) + fmt.Printf("%s=%s\n", "TFTPDIR", buildconfig.TFTPDIR()) + fmt.Printf("%s=%s\n", "SYSTEMDDIR", buildconfig.SYSTEMDDIR()) + fmt.Printf("%s=%s\n", "WWOVERLAYDIR", buildconfig.WWOVERLAYDIR()) + fmt.Printf("%s=%s\n", "WWCHROOTDIR", buildconfig.WWCHROOTDIR()) + fmt.Printf("%s=%s\n", "WWPROVISIONDIR", buildconfig.WWPROVISIONDIR()) + fmt.Printf("%s=%s\n", "BASEVERSION", buildconfig.VERSION()) + fmt.Printf("%s=%s\n", "RELEASE", buildconfig.RELEASE()) + fmt.Printf("%s=%s\n", "WWCLIENTDIR", buildconfig.WWCLIENTDIR())o } else { fmt.Println(version.GetVersion()) }