bicep

package
v0.0.0-...-e311bc9 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BicepVersion semver.Version = semver.MustParse("0.26.170")

BicepVersion is the minimum version of bicep that we require (and the one we fetch when we fetch bicep on behalf of a user).

Functions

This section is empty.

Types

type BicepCli

type BicepCli interface {
	Build(ctx context.Context, file string) (BuildResult, error)
	BuildBicepParam(ctx context.Context, file string, env []string) (BuildResult, error)
}

func NewBicepCli

func NewBicepCli(
	ctx context.Context,
	console input.Console,
	commandRunner exec.CommandRunner,
) (BicepCli, error)

NewBicepCli creates a new BicepCli. Azd manages its own copy of the bicep CLI, stored in `$AZD_CONFIG_DIR/bin`. If bicep is not present at this location, or if it is present but is older than the minimum supported version, it is downloaded.

type BuildResult

type BuildResult struct {
	// The compiled ARM template
	Compiled string

	// Lint error message, if any
	LintErr string
}

Jump to

Keyboard shortcuts

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