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.
Click to show internal directories.
Click to hide internal directories.