Skip to content

Conversation

bhouston
Copy link
Member

Summary

This PR adds two new CLI options to support automated usage scenarios:

  • --userWarning=false - Disables the user consent check
  • --upgradeCheck=false - Disables the version upgrade check

Problem

When running MyCoder in automated environments like CI/CD pipelines:

  1. The user consent prompt blocks execution and requires manual intervention
  2. The version upgrade check adds unnecessary output and network calls

Solution

Added two boolean CLI options that can be set to false to disable these features:

  • --userWarning=false bypasses the consent check
  • --upgradeCheck=false skips the version check

Changes

  • Added new options to SharedOptions type and sharedOptions object in options.ts
  • Updated consent check in .ts to respect the userWarning option
  • Updated version check in .ts to respect the upgradeCheck option
  • Updated documentation in README files

Add --userWarning and --upgradeCheck options to support automated environments

- --userWarning=false: Disables the user consent check

- --upgradeCheck=false: Disables the version upgrade check

- Updated documentation in README files
@bhouston
Copy link
Member Author

I've updated the implementation of --userWarning=false to just skip the consent check without saving consent. This follows standard UX conventions where boolean flags should not cause permanent side effects. The option now just bypasses the check for the current session.

@bhouston bhouston merged commit 2c7104e into main Mar 11, 2025
1 check passed
Copy link

🎉 This PR is included in version 0.9.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Copy link

🎉 This PR is included in version mycoder-v1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@bhouston bhouston deleted the feat/cli-automated-options branch March 12, 2025 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant