bicep

package
v0.0.0-...-4d33260 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version semver.Version = semver.MustParse("0.29.47")

Version 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 BuildResult

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

	// Lint error message, if any
	LintErr string
}

type Cli

type Cli struct {
	// contains filtered or unexported fields
}

func NewCli

func NewCli(
	ctx context.Context,
	console input.Console,
	commandRunner exec.CommandRunner,
) (*Cli, error)

NewCli creates a new Bicep CLI. 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.

func (*Cli) Build

func (cli *Cli) Build(ctx context.Context, file string) (BuildResult, error)

func (*Cli) BuildBicepParam

func (cli *Cli) BuildBicepParam(ctx context.Context, file string, env []string) (BuildResult, error)

Jump to

Keyboard shortcuts

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