Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstallBrewDeps ¶
InstallBrewDeps installs the input brew packages by running brew install. If any installation fails, it returns an error.
Parameters:
brewPackages: A slice of strings representing the brew packages to be installed.
Returns:
error: An error if any brew package fails to install.
Example:
brewPackages := []string{"shellcheck", "shfmt"} err := macos.InstallBrewDeps(brewPackages)
if err != nil {
log.Fatalf("failed to install brew dependencies: %v", err)
}
func InstallBrewTFDeps ¶
func InstallBrewTFDeps() error
InstallBrewTFDeps installs dependencies for terraform projects using homebrew. The dependencies include several shell and terraform tools. If any installation fails, it returns an error.
Returns:
error: An error if any brew package fails to install.
Example:
err := macos.InstallBrewTFDeps()
if err != nil {
log.Fatalf("failed to install terraform brew dependencies: %v", err)
}
Types ¶
This section is empty.