sparse-intern-71089
09/24/2020, 2:51 PMgreen-school-95910
09/24/2020, 2:58 PMrepo := GitRepo{
URL: "<https://github.com/your/repo.git>",
// this call back will get executed post-clone to allow for additional program setup
Setup: func(ctx context.Context, workspace Workspace) error {
cmd := exec.Command("npm", "install")
cmd.Dir = workspace.WorkDir()
return cmd.Run()
},
}
limited-rainbow-51650
09/24/2020, 3:05 PM