INNER CODE UNIT · Go
autoconfigCmdFunc
bliporg/blip · deps/deptool/cmd/main.go:144
func autoconfigCmdFunc(cmd *cobra.Command, args []string) error {
platforms := []string{}
if len(args) > 0 {
platforms = strings.Split(args[0], ",")
}
if len(platforms) == 0 {
return fmt.Errorf("platform is required")
}
cubzhRepoRootDirPath := ""
if len(args) > 1 {
cubzhRepoRootDirPath = args[1]
} else {
// find git repo root directory
var err error
cubzhRepoRootDirPath, err = findPathToFirstParentGitRepo()
if err != nil {
return err