-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix: Adding missing flags to the hcl command
#4927
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 WalkthroughWalkthroughCentralizes TF path and queue-related CLI flags into a new shared module and updates commands/tests to consume these shared definitions. Removes a local TF path flag factory, adjusts function signatures to drop a prefix parameter, and wires shared flags into hcl validate and run command flows. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant CLI as terragrunt
participant Cmd as hcl validate command
participant Shared as flags/shared
participant Opts as TerragruntOptions
participant Exec as Executor
User->>CLI: terragrunt hcl validate [--tf-path ... --queue-...]
CLI->>Cmd: Initialize command
Cmd->>Shared: NewTFPathFlag(opts)\nNewQueueFlags(opts, prefix)
Shared-->>Opts: Bind parsed values (TFPath, include/exclude, units, etc.)
Cmd->>Exec: Run validate with Opts (tf-path honored, queue scope applied)
Exec-->>User: Validation result
note over Shared,Exec: New/centralized flag constructors drive option wiring
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (3 warnings)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (5)
🧰 Additional context used📓 Path-based instructions (1)**/*.go⚙️ CodeRabbit configuration file
Files:
🧠 Learnings (2)📚 Learning: 2025-04-17T13:02:28.098ZApplied to files:
📚 Learning: 2025-02-10T13:36:19.542ZApplied to files:
🧬 Code graph analysis (5)cli/flags/shared/shared.go (7)
cli/commands/hcl/validate/cli.go (1)
cli/commands/run/help.go (1)
cli/app_test.go (3)
cli/commands/run/flags.go (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (10)
Comment |
Description
Fixes #4907
TODOs
Read the Gruntwork contribution guidelines.
Release Notes (draft)
Added / Removed / Updated [X].
Migration Guide
Summary by CodeRabbit
New Features
Documentation
Refactor
Tests