-
-
Notifications
You must be signed in to change notification settings - Fork 153
Expand file tree
/
Copy pathgenerate.go
More file actions
24 lines (21 loc) · 1.12 KB
/
generate.go
File metadata and controls
24 lines (21 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package generate
import (
"github.com/spf13/cobra"
)
// GenerateCmd is the parent command for all terraform generate subcommands.
// It is exported so the terraform package can add it as a subcommand.
var GenerateCmd = &cobra.Command{
Use: "generate",
Short: "Generate Terraform configuration files for Atmos components and stacks",
Long: `The 'atmos terraform generate' command is used to generate Terraform configuration files
for specific components and stacks within your Atmos setup.
This command supports the following subcommands:
- 'backend' to generate a backend configuration file for an Atmos component in a stack.
- 'backends' to generate backend configuration files for all Atmos components in all stacks.
- 'varfile' to generate a variable file (varfile) for an Atmos component in a stack.
- 'varfiles' to generate varfiles for all Atmos components in all stacks.
- 'planfile' to generate a planfile for an Atmos component in a stack.
- 'files' to generate files from the generate section for an Atmos component.`,
Args: cobra.NoArgs,
FParseErrWhitelist: struct{ UnknownFlags bool }{UnknownFlags: false},
}