Skip to content
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

fix: Replacing usage of run-all with run --all in starlight docs #3950

Merged
merged 1 commit into from
Mar 3, 2025

Conversation

yhakbar
Copy link
Collaborator

@yhakbar yhakbar commented Mar 1, 2025

Description

We have the run --all command now, and the starlight docs are supposed to represent where the docs will be at 1.0, so we can update them accordingly now.

TODOs

Read the Gruntwork contribution guidelines.

  • Update the docs.
  • Run the relevant tests successfully, including pre-commit checks.
  • Ensure any 3rd party code adheres with our license policy or delete this line if its not applicable.
  • Include release notes. If this PR is backward incompatible, include a migration guide.

Release Notes (draft)

Added / Removed / Updated [X].

Migration Guide

Summary by CodeRabbit

  • Documentation
    • Updated all command examples to use the updated syntax ("run --all") instead of the deprecated format ("run-all") for operations like apply, destroy, output, plan, and validate.
    • Revised associated notes to improve clarity and consistency in user guidance for executing Terragrunt operations.

Copy link

vercel bot commented Mar 1, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
terragrunt-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 1, 2025 7:10pm

Copy link
Contributor

coderabbitai bot commented Mar 1, 2025

Walkthrough

The documentation has been updated to reflect a new command syntax for Terragrunt operations. All examples previously using terragrunt run-all now use terragrunt run --all. This update applies across various commands such as apply, destroy, output, plan, and validate, ensuring consistent language in the examples and notes.

Changes

File Change Summary
docs-starlight/.../02-stacks.mdx Updated all instances of terragrunt run-all to terragrunt run --all in command examples, including variants for apply, destroy, output, plan, validate, and additional flags like --source and --out-dir.

Possibly related PRs

Suggested reviewers

  • denis256
  • levkohimins

In docs of code we find our art,
Commands now sing a fresh restart.
From run-all’s past to run --all’s cheer,
Syntax refined, intentions clear.
A code dance bright with poetic vibe, 🚀
Documentation now in its prime!


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (3)
docs-starlight/src/content/docs/02-features/02-stacks.mdx (3)

89-89: Updated Text for Output Command
The updated sentence instructs users how to view outputs using the run --all output command.
Note: A minor stylistic suggestion – consider trimming the phrase “of all of the subfolders” to “for all subfolders” for conciseness.

🧰 Tools
🪛 LanguageTool

[style] ~89-~89: Consider removing “of” to be more concise
Context: ...To see the currently applied outputs of all of the subfolders, you can use the run --all...

(ALL_OF_THE)


96-96: Revised Text for Plan Evaluation Guidance
The updated line introduces the plan command replacement. It might be worth rewording “if you make some changes to your project” to something like “if you update your project” for added clarity and a stronger tone.

🧰 Tools
🪛 LanguageTool

[style] ~96-~96: Consider rephrasing this to strengthen your wording.
Context: ...t run --all output ``` Finally, if you make some changes to your project, you could evaluate the...

(MAKE_CHANGES)


195-195: Clarification on Dependency Limitations in Plan/Validate
This block explains the issues when running commands that do not modify state in a new setup. It’s informative and precise.
Suggestion: Consider using “entirely new setup” instead of “completely new setup” to enhance clarity, as suggested by static analysis.

🧰 Tools
🪛 LanguageTool

[style] ~195-~195: Consider using a different adverb to strengthen your wording.
Context: ...-all planandrun --all validate`) on a completely new setup where no infrastructure has b...

(COMPLETELY_ENTIRELY)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 79a24f1 and 4f506ae.

📒 Files selected for processing (1)
  • docs-starlight/src/content/docs/02-features/02-stacks.mdx (14 hunks)
🧰 Additional context used
🪛 LanguageTool
docs-starlight/src/content/docs/02-features/02-stacks.mdx

[style] ~89-~89: Consider removing “of” to be more concise
Context: ...To see the currently applied outputs of all of the subfolders, you can use the run --all...

(ALL_OF_THE)


[style] ~96-~96: Consider rephrasing this to strengthen your wording.
Context: ...t run --all output ``` Finally, if you make some changes to your project, you could evaluate the...

(MAKE_CHANGES)


[style] ~195-~195: Consider using a different adverb to strengthen your wording.
Context: ...-all planandrun --all validate`) on a completely new setup where no infrastructure has b...

(COMPLETELY_ENTIRELY)


[style] ~197-~197: Consider using a different adverb to strengthen your wording.
Context: ... --all validateorrun --all plan` on a completely new set of infrastructure. To address ...

(COMPLETELY_ENTIRELY)


[uncategorized] ~199-~199: Use a comma before ‘and’ if it connects two independent clauses (unless they are closely connected and short).
Context: ...utsattribute on thedependency` block and it corresponds to a map that will be in...

(COMMA_COMPOUND_SENTENCE)

⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: build-and-test
  • GitHub Check: unessential
🔇 Additional comments (16)
docs-starlight/src/content/docs/02-features/02-stacks.mdx (16)

73-73: Update to Introductory Text for Apply Command
The revised sentence clearly instructs users to navigate into the root directory and deploy all units using the run --all command with apply. This update correctly replaces the old syntax with the new one.


77-77: Corrected Apply Command Example
The code snippet now shows terragrunt run --all apply, which is exactly what we need. Clean and to the point!


82-82: Updated Text for Destroy Command Introduction
The modified line now explains that to undeploy all units, the updated command run --all destroy should be used. It’s consistent with the new syntax.


86-86: Corrected Destroy Command Example
The snippet now properly uses terragrunt run --all destroy. This change aligns perfectly with the documentation update.


93-93: Corrected Output Command Example
The code block now shows terragrunt run --all output correctly.


105-105: Corrected Plan Command Example
The snippet now accurately reflects the new syntax: terragrunt run --all plan.


203-203: Example Update for Mock Outputs Scenario
The sentence now clearly illustrates how a mysql unit can mock the vpc_id during a run --all validate operation. This example adds value and clarity for users.


245-245: Clarification on When Mock Outputs are Used
This update correctly notes that the mock_outputs will be applied during both validate and run --all validate. It’s clear and useful information.


345-345: Explaining the Order of Execution
The revised line clearly introduces the order of runs for the run --all apply command based on dependency relationships. This is informative and consistent.


387-387: Updated Command with Source Parameter (Plan)
The code snippet now correctly shows terragrunt run --all plan --source /source/modules, matching the PR objectives for updating command syntax.


411-411: Updated Command with Source Parameter (Apply)
The example is now updated to use terragrunt run --all apply --source /source/infrastructure-modules, which is spot on.


464-465: Updated Commands for Plan-Destroy Workflow
Both commands in this code block, for planning a destroy operation and then applying it, now use the updated syntax along with the --out-dir flag correctly.


471-471: Updated JSON Plan Command Example
The snippet now shows terragrunt run --all --json-out-dir /tmp/json plan, which fits the updated docs perfectly.


515-515: Note on JSON Plan Files
The note clearly states the limitation: JSON plan files cannot be used with the run --all apply command. It’s a necessary caution for users.


543-543: Clarification on Running Commands in Nested Stacks
The updated sentence now explains that run --all commands can be executed at any depth within a stack. This makes the concept of nested stacks more accessible.


549-549: Nested Stack Command Example
The final code block shows the updated syntax terragrunt run --all apply for executing commands in a nested stack scenario. It’s concise and correct.

@yhakbar yhakbar merged commit 38aa976 into main Mar 3, 2025
8 of 9 checks passed
@yhakbar yhakbar deleted the fix/fixing-some-more-issues-in-docs branch March 3, 2025 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants