Commit 72fe84d
committed
fix: hide commit and build time when unavailable
Only display commit hash and build time in --version output when they
have actual values. When using 'go install', these show as 'none' and
'unknown' which clutters the output.
Before (go install):
plum version v0.3.5
commit: none
built: unknown
After (go install):
plum version v0.3.5
After (Homebrew/binaries):
plum version v0.3.5
commit: 3b0135b
built: 2026-01-11T07:51:08Z1 parent 3b0135b commit 72fe84d
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
| |||
0 commit comments