Skip to content

fix: allow custom environment variable name for help/version - #185

Open
molisani wants to merge 1 commit into
mainfrom
fix/customize-env-var
Open

fix: allow custom environment variable name for help/version#185
molisani wants to merge 1 commit into
mainfrom
fix/customize-env-var

Conversation

@molisani

@molisani molisani commented Aug 7, 2026

Copy link
Copy Markdown
Member

Describe your changes
Stricli makes uses of two environment variables to control certain behaviors:

  • STRICLI_SKIP_VERSION_CHECK disables the version check
  • STRICLI_NO_COLOR disables ANSI color codes

Now that help text and version checks are their own integrations, there's no reason that these need to be hardcoded. If there's some application "foo" then it can have its own FOO_SKIP_VERSION_CHECK environment variable (for whatever reason).

Testing performed
Updated test suite to account for new behavior, ensured code coverage.

Additional context
Right now this change will only allow customizing the ANSI color codes for the help text output. It might make sense to allow customizing STRICLI_NO_COLOR for the entire application as well, not just the help text. Could be a good follow-up item.

Signed-off-by: Michael Molisani <mmolisani@bloomberg.net>
@molisani molisani self-assigned this Aug 7, 2026
@molisani
molisani requested a review from a team as a code owner August 7, 2026 18:27
@github-actions github-actions Bot added the core ⚙ Relates to the @stricli/core package label Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core ⚙ Relates to the @stricli/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant