MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / downloadFilesByGit

Function downloadFilesByGit

cli/cmd/start/k8s.go:925–936  ·  view source on GitHub ↗

从git下载相关文件

(gitCloneUrl string, branch string, filePathExpression string)

Source from the content-addressed store, hash-verified

923
924// 从git下载相关文件
925func downloadFilesByGit(gitCloneUrl string, branch string, filePathExpression string) (
926 gitRepoRootDirPath string, fileRelativePaths []string, err error) {
927 // home 目录的路径
928 home, err := os.UserHomeDir()
929 if err != nil {
930 return
931 }
932
933 // 文件路径
934 workingRootDir := filepath.Join(home, globalModel.CONST_GlobalK8sDirPath) // 工作目录,repo 会clone到当前目录下
935 return common.GIT.DownloadFilesByGit(workingRootDir, gitCloneUrl, branch, filePathExpression)
936}
937
938const (
939 Flags_ServerHost = "serverhost"

Callers 1

Calls 2

DownloadFilesByGitMethod · 0.80
JoinMethod · 0.45

Tested by

no test coverage detected