INNER CODE UNIT · Go
activateCmdFunc
bliporg/blip · deps/deptool/cmd/main.go:126
func activateCmdFunc(cmd *cobra.Command, args []string) error {
depName := args[0]
version := args[1]
platform := args[2]
// find git repo root directory
gitRepoRootDir, err := findPathToFirstParentGitRepo()
if err != nil {
return err
}
depsDirPath := filepath.Join(gitRepoRootDir, "deps")
return deptool.ActivateDependency(depsDirPath, depName, version, platform)
}
// deptool autoconfig platforms [<cubzh repo root dir path>]
// example: deptool autoconfig macos,ios,android,windows,linux