lib: parseHledgerVersion: also save the package version as text

This commit is contained in:
Simon Michael 2025-04-23 11:00:49 -10:00
parent cd6288a8eb
commit 6cf40a76d1

View File

@ -92,6 +92,7 @@ data HledgerBinaryVersion = HledgerBinaryVersion {
hbinVersionOutput :: String hbinVersionOutput :: String
, hbinProgramName :: ProgramName , hbinProgramName :: ProgramName
, hbinPackageVersion :: Version , hbinPackageVersion :: Version
, hbinPackageVersionStr :: String
, hbinGitHash :: Maybe GitHash , hbinGitHash :: Maybe GitHash
, hbinReleaseDate :: Maybe Day , hbinReleaseDate :: Maybe Day
, hbinOs :: Maybe OsName , hbinOs :: Maybe OsName
@ -147,6 +148,7 @@ hledgerversionp = do
{ hbinVersionOutput = "" { hbinVersionOutput = ""
, hbinProgramName = progName , hbinProgramName = progName
, hbinPackageVersion = pkgversion , hbinPackageVersion = pkgversion
, hbinPackageVersionStr = showVersion pkgversion
, hbinGitHash = mgithash , hbinGitHash = mgithash
, hbinReleaseDate = mreldate , hbinReleaseDate = mreldate
, hbinOs = mos , hbinOs = mos