-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: generate command rework (#928)
* feat: iac generate command rework The subcommand `cloud-account iac-generate` is now top level `generate` command
- Loading branch information
1 parent
e562429
commit 56cbdcd
Showing
15 changed files
with
263 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package cmd | ||
|
||
import "github.com/spf13/cobra" | ||
|
||
var ( | ||
generateCloudAccountCommand = &cobra.Command{ | ||
Use: "cloud-account", | ||
Aliases: []string{"cloud", "ca"}, | ||
Short: "Generate Lacework integration IaC", | ||
Long: "Generate Lacework integration IaC for cloud environment(s)", | ||
} | ||
) | ||
|
||
func init() { | ||
generateTfCommand.AddCommand(generateCloudAccountCommand) | ||
|
||
// Uncomment when `cloud-account iac-generate` removed | ||
// initGenerateAwsTfCommandFlags() | ||
// initGenerateGcpTfCommandFlags() | ||
// initGenerateAzureTfCommandFlags() | ||
|
||
generateCloudAccountCommand.AddCommand(generateAwsTfCommand) | ||
generateCloudAccountCommand.AddCommand(generateGcpTfCommand) | ||
generateCloudAccountCommand.AddCommand(generateAzureTfCommand) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.