Fix version command and add default action with banner

- Version command now uses mfer.Version constant instead of empty build flags
- Running just 'mfer' shows banner + help
- Unknown commands still return error with exit code 1
This commit is contained in:
2025-12-17 15:28:14 -08:00
parent 6edc798de0
commit 9dbdcbde91
2 changed files with 12 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ func TestVersionCommand(t *testing.T) {
assert.Equal(t, 0, exitCode)
stdout := opts.Stdout.(*bytes.Buffer).String()
assert.Contains(t, stdout, "1.0.0")
assert.Contains(t, stdout, mfer.Version)
assert.Contains(t, stdout, "abc123")
}