convert

package
v0.27.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package convert provides functionality to convert legacy policies from terraform-azurerm-caf-enterprise-scale to the new ALZ Library format.

Index

Constants

View Source
const (
	// RequiredArgCount is the number of required arguments for convert commands.
	RequiredArgCount = 2
)

Variables

View Source
var ConvertBaseCmd = cobra.Command{
	Use: "convert",
	Short: "Converts policy definitions or policy set definitions (depending on child command) " +
		"from the source directory and writes them to the destination directory.",
	Long: `Processes policy definitions or policy set definitions (depending on child command) ` +
		`from the source directory and writes them to the destination directory.
Required child arguments are the child command, and the source and destination directories.`,
	Run: func(cmd *cobra.Command, _ []string) {
		cmd.PrintErrf("%s process command: missing required child command\n", cmd.ErrPrefix())
		cmd.Usage()
		os.Exit(1)
	},
}

ConvertBaseCmd represents the base process command.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL