installer

package
v0.0.0-...-835fc6e Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RawInstalledBy

func RawInstalledBy() string

RawInstalledBy returns the raw value of the `.installed-by.txt` file in the same directory as the executing instance of azd after removing leading and trailing whitespace.

Types

type InstallType

type InstallType string
const InstallTypeBrew InstallType = "brew"
const InstallTypeChoco InstallType = "choco"
const InstallTypeDeb InstallType = "deb"
const InstallTypePs InstallType = "install-azd.ps1"
const InstallTypeRpm InstallType = "rpm"
const InstallTypeSh InstallType = "install-azd.sh"
const InstallTypeUnknown InstallType = ""
const InstallTypeWinget InstallType = "winget"

func InstalledBy

func InstalledBy() InstallType

InstalledBy Returns the type of installer that installed the CLI, based on the contents of the `.installed-by.txt` file in the same directory as the executing instance of azd.

Jump to

Keyboard shortcuts

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