INNER CODE UNIT · Go

downloadCmdFunc

bliporg/blip · deps/deptool/cmd/main.go:103

func downloadCmdFunc(cmd *cobra.Command, args []string) error {
	depName := args[0]
	version := args[1]
	platform := args[2]
	forceFlag, err := cmd.Flags().GetBool("force")
	if err != nil {
		return err
	}

	// find git repo root directory
	gitRepoRootDir, err := findPathToFirstParentGitRepo()
	if err != nil {
		return err
	}

	// construct path to deps directory
	depsDirPath := filepath.Join(gitRepoRootDir, "deps")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…