Skip to content

Conversation

@GalvinPython
Copy link
Owner

No description provided.

@GalvinPython GalvinPython added the enhancement New feature or request label Jan 9, 2026
@GalvinPython GalvinPython linked an issue Jan 9, 2026 that may be closed by this pull request
@GalvinPython GalvinPython marked this pull request as ready for review January 9, 2026 21:06
Copilot AI review requested due to automatic review settings January 9, 2026 21:06
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a new feature for conditional variable loading based on CLI flag presence (useWithFlag) and renames the existing flag property to useFlagInstead for better semantic clarity. The PR also includes CI improvements and documentation updates.

Key changes:

  • Renamed flag property to useFlagInstead to better indicate its purpose (using a CLI flag instead of an environment variable)
  • Added new useWithFlag property to conditionally load variables only when specific CLI flags are present
  • Added comprehensive test coverage for the new conditional loading feature

Reviewed changes

Copilot reviewed 5 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/index.ts Renamed flag to useFlagInstead, added useWithFlag conditional loading logic, updated error messages
tests/index.test.ts Updated tests to use useFlagInstead, added 6 new comprehensive test cases for useWithFlag functionality
README.md Added CI badge and Node.js version badge, updated changelog for version 0.2.0
SECURITY.md Updated contact email address, removed commented-out code
.github/workflows/test-node.yml New CI workflow to test across Node.js versions 20, 22, 24, and 25
.github/workflows/main.yml Reformatted indentation from spaces to consistent 4-space indentation
package-lock.json Auto-generated npm changes adding "peer": true to various dependencies

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@GalvinPython GalvinPython merged commit 33aaf31 into main Jan 10, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FR]: Associate variable to CLI flag

2 participants