Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstallBrewDeps ¶
InstallBrewDeps executes brew install for the input packages. If any installation fails, it returns an error.
**Parameters:**
brewPackages: Slice of strings representing the packages to install.
**Returns:**
error: An error if any package fails to install.
Example ¶
package main import ( "log" "github.com/l50/goutils/v2/macos" ) func main() { brewPackages := []string{"shellcheck", "shfmt"} err := macos.InstallBrewDeps(brewPackages) if err != nil { log.Fatalf("failed to install brew dependencies: %v", err) } }
Output:
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 package fails to install.
Example ¶
package main import ( "log" "github.com/l50/goutils/v2/macos" ) func main() { err := macos.InstallBrewTFDeps() if err != nil { log.Fatalf("failed to install terraform brew dependencies: %v", err) } }
Output:
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.