github.com/taubyte/tau-cli@v0.1.13-0.20240326000942-487f0d57edfc/lib/repository/pull.go (about) 1 package repositoryLib 2 3 import ( 4 git "github.com/taubyte/go-simple-git" 5 "github.com/taubyte/tau-cli/singletons/config" 6 ) 7 8 func (info *Info) Pull(project config.Project, url string) (*git.Repository, error) { 9 repo, err := info.Open(project, url) 10 if err != nil { 11 return nil, err 12 } 13 14 err = repo.Pull() 15 if err != nil { 16 return nil, err 17 } 18 19 return repo, nil 20 }