github.com/joey-fossa/fossa-cli@v0.7.34-0.20190708193710-569f1e8679f0/buildtools/carthage/carthage.go (about) 1 package carthage 2 3 import ( 4 "github.com/fossas/fossa-cli/exec" 5 ) 6 7 type Carthage struct { 8 Bin string 9 } 10 11 func (c *Carthage) Install(dir string) error { 12 _, _, err := exec.Run(exec.Cmd{ 13 Name: c.Bin, 14 Argv: []string{"update"}, 15 Dir: dir, 16 }) 17 return err 18 }