-
-
Notifications
You must be signed in to change notification settings - Fork 121
Add pager to atmos describe dependents command #1295
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
base: main
Are you sure you want to change the base?
Add pager to atmos describe dependents command #1295
Conversation
…mand' of https://github.com/cloudposse/atmos into feature/dev-3131-add-pager-to-atmos-describe-config-command
…mand' of https://github.com/cloudposse/atmos into feature/dev-3131-add-pager-to-atmos-describe-config-command
…mand' of https://github.com/cloudposse/atmos into feature/dev-3131-add-pager-to-atmos-describe-config-command
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
…mand' of https://github.com/cloudposse/atmos into feature/dev-3131-add-pager-to-atmos-describe-config-command
…ommand' of https://github.com/cloudposse/atmos into feature/dev-3431-add-pager-to-atmos-describe-dependents-command
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1295 +/- ##
==========================================
+ Coverage 50.46% 51.06% +0.59%
==========================================
Files 237 238 +1
Lines 25777 25799 +22
==========================================
+ Hits 13008 13173 +165
+ Misses 11151 10989 -162
- Partials 1618 1637 +19
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…-dependents-command
…-dependents-command
…-command' of https://github.com/cloudposse/atmos into feature/dev-3431-add-pager-to-atmos-describe-dependents-command
…-command' of https://github.com/cloudposse/atmos into feature/dev-3431-add-pager-to-atmos-describe-dependents-command
📝 WalkthroughWalkthroughThe "describe dependents" command was refactored for modularity and testability. Execution logic is now handled by an interface-driven executor, with dependencies injected for easier testing. A new Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant CLI
participant Cmd as describeDependentsCmd
participant Executor as DescribeDependentsExec
participant Pager
participant Output
User->>CLI: Run "describe dependents COMPONENT [flags]"
CLI->>Cmd: Parse args, validate config, set flags
Cmd->>Executor: Execute(props)
Executor->>Executor: Fetch dependents
Executor->>Executor: (Optional) Apply query filter
Executor->>Pager: If output large, use pager
Pager->>Output: Display results
Executor->>Cmd: Return status
Cmd->>CLI: Exit
Assessment against linked issues
Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (5)
🧰 Additional context used🪛 GitHub Check: codecov/patchcmd/describe_dependents.go[warning] 48-49: cmd/describe_dependents.go#L48-L49 ⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (15)
✨ Finishing Touches
🧪 Generate Unit Tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
…-dependents-command
what
why
references
Summary by CodeRabbit
New Features
--query
flag.Bug Fixes
Refactor
Tests