Browse Source

readme

pull/103/head
Unknown 12 years ago
parent
commit
889a183d22
  1. 2
      README.md
  2. 11
      doc/struct.go
  3. 2
      install.go

2
README.md

@ -14,6 +14,7 @@ gpm(Go Package Manager) is a Go package manage tool for search, install, update
- All errors should have specific title for exactly where were created.
- Add i18n support for all strings.
- Command `build` add current path to GOPATH temporary.
- Add gpm working principle design.
- Add support for downloading tarballs from user sources.
- After downloaded all packages in bundles or snapshots, need to check if all dependencies have been downloaded as well.
@ -21,7 +22,6 @@ gpm(Go Package Manager) is a Go package manage tool for search, install, update
- Add bundle and snapshot parser code for downloading by bundle or snapshot id.
- Add user system to create, edit, upload, and download bundles or snapshots through gpm client program.
- Download package from code.google.com only support hg as version control system, probably support git and svn.
- Add feature for downloading through version control tools, and use `checkout` to switch to specific revision; this feature only be enabled when users use bundle or snapshot id.
- Add support for downloading by tag for packages in github.com, bitbucket.org, git.oschina.net, gitcafe.com.
- Get author commit time and save in node.
- Collect download and installation results and report to users in the end.

11
doc/struct.go

@ -19,11 +19,12 @@ type Node struct {
// Bundle represents a bundle.
type Bundle struct {
Id int64
UserId int64 `json:"user_id"`
Name string `json:"bundle_name"`
Comment string
Nodes []*Node
Id int64
UserId int64 `json:"user_id"`
Name string `json:"bundle_name"`
Timestamp int64
Comment string
Nodes []*Node
}
// source is source code file.

2
install.go

@ -179,7 +179,7 @@ func downloadPackages(pkgs, commits []string) {
for i := range bpkgs {
fmt.Printf("import path: %s, commit: %s.\n", bpkgs[i], bcommits[i])
}
fmt.Print("Continue download?(Y/n).")
fmt.Print("Continue to download?(Y/n).")
var option string
fmt.Fscan(os.Stdin, &option)
if strings.ToLower(option) != "y" {

Loading…
Cancel
Save