Browse Source

clean code: install.go

pull/103/head
Unknown 12 years ago
parent
commit
63a27f647d
  1. 4
      doc/github.go
  2. 4
      install.go

4
doc/github.go

@ -28,10 +28,12 @@ func SetGithubCredentials(id, secret string) {
githubCred = "client_id=" + id + "&client_secret=" + secret
}
// GetGithubDoc downloads tarball from github.com.
func GetGithubDoc(client *http.Client, match map[string]string, commit string) (*Package, []string, error) {
/*SetGithubCredentials("1862bcb265171f37f36c", "308d71ab53ccd858416cfceaed52d5d5b7d53c5f")
SetGithubCredentials("1862bcb265171f37f36c", "308d71ab53ccd858416cfceaed52d5d5b7d53c5f")
match["cred"] = githubCred
/*
var refs []*struct {
Object struct {
Type string

4
install.go

@ -105,7 +105,11 @@ func runInstall(cmd *Command, args []string) {
commits := make([]string, len(args))
downloadPackages(args, commits)
if !cmdInstall.Flags["d"] {
// Install packages all together.
fmt.Printf("Installing package: %s.\n")
}
fmt.Println("Well done.")
}

Loading…
Cancel
Save