Skip to content

Conversation

@codegen-sh
Copy link
Contributor

@codegen-sh codegen-sh bot commented Aug 12, 2025

Problem

The CLI help command (codegen --help and similar commands) was failing with an error: TypeError: Parameter.make_metavar() missing 1 required positional argument: 'ctx'. This was due to a compatibility issue between the installed version of typer and click.

Solution

Updated the typer dependency in pyproject.toml from typer>=0.12.5 to typer>=0.16.0 to ensure compatibility with the current click version (8.2.1). This fixes the help command functionality while maintaining backward compatibility.

Testing

  • Verified that codegen --help now works correctly
  • Verified that codegen login --help now works correctly
  • Confirmed that the core functionality (login, etc.) continues to work as expected

This change ensures that users can access the CLI help documentation properly.


💻 View my work • 👤 Initiated by Jay Hack • 💬 Initiated in #demoAbout Codegen
⛔ Remove Codegen from PR🚫 Ban action checks

Co-authored-by: Jay Hack <jay@codegen.com>
@codegen-sh codegen-sh bot requested review from a team and codegen-team as code owners August 12, 2025 23:22
@codecov
Copy link

codecov bot commented Aug 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

@codegen-sh
Copy link
Contributor Author

codegen-sh bot commented Aug 12, 2025

🔍 Check Suite Status for PR #1190

Check Status Commit Time Check Suite Agent trace
pre-commit ⚪ No action 2cdf1d6 Just now Run
GitHub Actions ⚪ No action 2cdf1d6 Just now Run Agent Work
Results & Findings

pre-commit: ✅ Fixed the failing pre-commit check in PR #1190 by updating the requires-python field in pyproje...

💻 View my work🛑 Stop🚫 Ban all checks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant