swa

package
v1.23.13 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsSwaConfig

func ContainsSwaConfig(path string) (bool, error)

check if the swa-cli.config.json file exists in the given directory

Types

type Cli

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

func NewCli

func NewCli(commandRunner exec.CommandRunner) *Cli

func (*Cli) Build

func (cli *Cli) Build(ctx context.Context, cwd string, buildProgress io.Writer, env []string) error

func (*Cli) CheckInstalled

func (cli *Cli) CheckInstalled(_ context.Context) error

func (*Cli) Deploy

func (cli *Cli) Deploy(
	ctx context.Context,
	cwd string,
	tenantId string,
	subscriptionId string,
	resourceGroup string,
	appName string,
	environment string,
	deploymentToken string,
	options DeployOptions,
	env []string,
) (string, error)

func (*Cli) InstallUrl

func (cli *Cli) InstallUrl() string

func (*Cli) Name

func (cli *Cli) Name() string

type DeployOptions

type DeployOptions struct {
	AppFolderPath            string
	OutputRelativeFolderPath string
}

Jump to

Keyboard shortcuts

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