You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!--
Describe in detail the changes you are proposing, and the rationale.
-->
<!--
Link all GitHub issues fixed by this PR, and add references to prior
related PRs.
-->
Fixes #
### NEW FEATURES | UPGRADE NOTES | ENHANCEMENTS | BUG FIXES |
EXPERIMENTS
<!--
Write a short description of your changes. Examples:
- Fixed a bug
- Added a new feature
- Updated documentation
-->
-
Copy file name to clipboardExpand all lines: docs/src/reference/cli/mach-composer.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,18 +18,18 @@ MACH composer is a framework that you use to orchestrate and extend modern digit
18
18
19
19
### SEE ALSO
20
20
21
-
*[mach-composer apply](mach-composer_apply.md) - Apply the configuration.
21
+
*[mach-composer apply](mach-composer_apply.md) - Apply the configuration. See [the documentation](/howto/cli/filtering-commands) for filtering options.
22
22
*[mach-composer cloud](mach-composer_cloud.md) - Manage your Mach Composer Cloud
23
23
*[mach-composer components](mach-composer_components.md) - List all components.
24
24
*[mach-composer generate](mach-composer_generate.md) - Generate the Terraform files.
25
25
*[mach-composer graph](mach-composer_graph.md) - Print the execution graph for this project
26
-
*[mach-composer init](mach-composer_init.md) - Initialize site directories Terraform files.
27
-
*[mach-composer plan](mach-composer_plan.md) - Plan the configuration.
26
+
*[mach-composer init](mach-composer_init.md) - Initialize site directories Terraform files. See [the documentation](/howto/cli/filtering-commands) for filtering options.
27
+
*[mach-composer plan](mach-composer_plan.md) - Plan the configuration. See [the documentation](/howto/cli/filtering-commands) for filtering options.
28
28
*[mach-composer schema](mach-composer_schema.md) - Generate a JSON schema for your config based on the plugins.
29
-
*[mach-composer show-plan](mach-composer_show-plan.md) - Show the planned configuration.
29
+
*[mach-composer show-plan](mach-composer_show-plan.md) - Show the planned configuration. See [the documentation](/howto/cli/filtering-commands) for filtering options.
30
30
*[mach-composer sites](mach-composer_sites.md) - List all sites.
*[mach-composer terraform](mach-composer_terraform.md) - Execute terraform commands directly. See [the documentation](/howto/cli/filtering-commands) for filtering options.
32
32
*[mach-composer update](mach-composer_update.md) - Update all (or a given) component.
33
-
*[mach-composer validate](mach-composer_validate.md) - Validate the generated terraform configuration.
33
+
*[mach-composer validate](mach-composer_validate.md) - Validate the generated terraform configuration. See [the documentation](/howto/cli/filtering-commands) for filtering options.
34
34
*[mach-composer version](mach-composer_version.md) - Return version information of the mach-composer cli
Copy file name to clipboardExpand all lines: docs/src/reference/cli/mach-composer_terraform.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
## mach-composer terraform
2
2
3
-
Execute terraform commands directly
3
+
Execute terraform commands directly. See [the documentation](/howto/cli/filtering-commands) for filtering options.
4
4
5
5
```
6
6
mach-composer terraform [flags]
@@ -11,6 +11,7 @@ mach-composer terraform [flags]
11
11
```
12
12
-b, --buffer Whether logs should be buffered and printed at the end of the run
13
13
-f, --file string YAML file to parse. (default "main.yml")
14
+
--filter stringArray Run only nodes matching the filter expression
14
15
-g, --github Whether logs should be decorated with github-specific formatting
15
16
-h, --help help for terraform
16
17
--ignore-change-detection Ignore change detection to run even if the components are considered up to date. Per default the proxy will ignore change detection (default true)
Copy file name to clipboardExpand all lines: internal/cmd/apply.go
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -18,13 +18,14 @@ var applyFlags struct {
18
18
githubbool
19
19
bufferLogsbool
20
20
components []string
21
+
filters []string
21
22
numWorkersint
22
23
ignoreChangeDetectionbool
23
24
}
24
25
25
26
varapplyCmd=&cobra.Command{
26
27
Use: "apply",
27
-
Short: "Apply the configuration.",
28
+
Short: "Apply the configuration. See [the documentation](/howto/cli/filtering-commands) for filtering options.",
28
29
PreRun: func(cmd*cobra.Command, args []string) {
29
30
preprocessCommonFlags(cmd)
30
31
},
@@ -39,6 +40,7 @@ func init() {
39
40
applyCmd.Flags().BoolVarP(&applyFlags.forceInit, "force-init", "", false, "Force terraform initialization. By default mach-composer will reuse existing terraform resources")
40
41
applyCmd.Flags().BoolVarP(&applyFlags.autoApprove, "auto-approve", "", false, "Suppress a terraform init for improved speed (not recommended for production usage)")
41
42
applyCmd.Flags().BoolVarP(&applyFlags.destroy, "destroy", "", false, "Destroy option is a convenient way to destroy all remote objects managed by this mach config")
43
+
applyCmd.Flags().StringArrayVarP(&applyFlags.filters, "filter", "", nil, "Run only nodes matching the filter expression")
applyCmd.Flags().BoolVarP(&applyFlags.ignoreChangeDetection, "ignore-change-detection", "", false, "Ignore change detection to run even if the components are considered up to date")
44
46
applyCmd.Flags().BoolVarP(&applyFlags.github, "github", "g", false, "Whether logs should be decorated with github-specific formatting")
0 commit comments