Clean up func version output format
Open
Nobody has claimed this yet.
kind/good-first-issue
- Dominant language
- Go
- Stars
- 365
- Forks
- 223
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 25
Description
The verbose output of func version -v should be reviewed for
clarity and usefulness. Currently it can show empty fields (Knative,
Commit) when build metadata isn't injected, and the formatting
could be more consistent.
Suggested improvements:
- Omit fields with empty values rather than displaying blank lines
- Ensure build date, commit hash, and Knative version are populated
when built via the Makefile - Consider a structured output option (--output json/yaml)
Related: SRVOCF-466
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the func version -v CLI entry point and inspect how the Makefile supplies build date, commit hash, and Knative version metadata. Review the current verbose formatting and define completion as omitting empty fields, consistently populating injected metadata, and determining whether JSON/YAML output is included.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, json, yaml
- Domain
- build-system, cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100