Skip to content

feat(cz-cli): support CZ_FORMAT env var for default output format#10

Merged
hellozepp merged 1 commit into
mainfrom
feat/cz-format-env-default
Jun 1, 2026
Merged

feat(cz-cli): support CZ_FORMAT env var for default output format#10
hellozepp merged 1 commit into
mainfrom
feat/cz-format-env-default

Conversation

@7c00
Copy link
Copy Markdown
Collaborator

@7c00 7c00 commented Jun 1, 2026

Consolidate the hardcoded 'json' default into a shared defaultFormat() function that reads the CZ_FORMAT environment variable, allowing users to set a persistent default output format without passing --format on every invocation.

Issue for this PR

Closes #

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Please provide a description of the issue, the changes you made to fix it, and why they work. It is expected that you understand why your changes work and if you do not understand why at least say as much so a maintainer knows how much to value the PR.

If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!

How did you verify your code works?

Screenshots / recordings

If this is a UI change, please include a screenshot or recording.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

Consolidate the hardcoded 'json' default into a shared defaultFormat()
function that reads the CZ_FORMAT environment variable, allowing users
to set a persistent default output format without passing --format on
every invocation.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@7c00 7c00 requested a review from suibianwanwank June 1, 2026 10:39
@hellozepp hellozepp merged commit 3780835 into main Jun 1, 2026
@hellozepp hellozepp deleted the feat/cz-format-env-default branch June 1, 2026 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants