Documentation
¶
Index ¶
- Variables
- func CreateLinks(pkg string, stem string, confBinPaths []string) (bool, error)
- func DownloadUrl(url string, filePath string, pkg string, ver string, argNum int, argCount int, ...) bool
- func InstallAllPkgs(args []string) bool
- func InstallPkg(arg string, argIndex int, argCount int, wg *sync.WaitGroup, ...) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var AddCmd = &cobra.Command{ Use: "add [pkgs...]", Short: "install packages", Long: ` The "add" subcommand installs packages.`, Example: `webman add go webman add go@18.0.0 webman add go zig rg webman add go@18.0.0 zig@9.1.0 rg@13.0.0`, RunE: func(cmd *cobra.Command, args []string) error { utils.Init() if len(args) == 0 { cmd.Help() return nil } defer os.RemoveAll(utils.WebmanTmpDir) if utils.RecipeDirFlag == "" { shouldRefresh, err := pkgparse.ShouldRefreshRecipes() if err != nil { return err } if shouldRefresh || doRefresh { color.HiBlue("Refreshing package recipes") if err = pkgparse.RefreshRecipes(); err != nil { color.Red("%v", err) } } } if !InstallAllPkgs(args) { return fmt.Errorf("Not all packages installed successfully") } color.Green("All %d packages are installed!", len(args)) return nil }, }
addCmd represents the add command
Functions ¶
func DownloadUrl ¶
func InstallAllPkgs ¶
func InstallPkg ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.