diff --git a/README.md b/README.md index f7ef845e2..01fd3341a 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ This application still in experiment, any change could happen, but it doesn't af - `search` searchs packages in [Go Walker](http://gowalker.org) database by keyword. - `install` downloads and installs packages and dependencies: you can download packages without version control tools like git, hg, svn, etc. It downloads and installs all packages including all dependencies automatically(except when you use bundle or snapshot). For now, this command supports `code.google.com`, `github.com`, `launchpad.net`, `bitbucket.org`. - `remove` removes packages and dependencies: it removes all packages including all dependencies(except when you use bundle or snapshot). +- `check` checks dependencies of packages, and install all missing as a choose. ## Known issues @@ -32,7 +33,6 @@ This application still in experiment, any change could happen, but it doesn't af ### v0.2.* -- i18n support for Chinese. - Add template projects for testing commands. - Add feature auto-catch if run under GOPATH/bin. diff --git a/README_ZH.md b/README_ZH.md index 222025856..e078cd072 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -20,8 +20,10 @@ gpm(Go 包管理工具) 是一款涵盖搜索、安装、更新、分享以 ## 主要命令 - `build` 编译并安装 Go 包以及其依赖包:该命令从底层调用 `go install` 命令,如果为 main 包,则会将可执行文件从 `GOPATH` 中移至当前目录,可执行文件的名称是由 `go install` 默认指定的当前文件夹名称。 +- `search` 通过关键字在 [Go Walker](http://gowalker.org) 数据库中查找相关包。 - `install` 下载并安装 Go 包以及其依赖包:您无需安装像 git、hg 或 svn 这类版本控制工具就可以下载您指定的包。该命令也会自动下载相关的依赖包(当您使用集合或快照下载时,不会自动下载依赖包)。目前,该命令支持托管在 `code.google.com`、`github.com`、`launchpad.net` 和 `bitbucket.org` 上的开源项目。 - `remove` 删除 Go 包及其依赖包:该命令可删除 Go 包及其依赖包(当您使用集合或快照删除时,无法自动删除依赖包)。 +- `check` 检查当前包的依赖包是否全部安装,如果发现未安装的依赖包会提示您是否选择安装。 ## 已知问题 diff --git a/conf/gpm.toml b/conf/gpm.toml index 49fd7a16e..8323721f1 100644 --- a/conf/gpm.toml +++ b/conf/gpm.toml @@ -1,9 +1,9 @@ # This is a configuration file for gpm with toml format. title = "gpm(Go Package Manager)" -version = "v0.1.9 Build 0523" -user_language = "en-US" -#user_language = "zh-CN" +version = "v0.2.0 Build 0523" +#user_language = "en-US" +user_language = "zh-CN" auto_backup = true [account] diff --git a/i18n/en-US/usage.tpl b/i18n/en-US/usage.tpl index a1bb4a1c9..ab38d90b7 100644 --- a/i18n/en-US/usage.tpl +++ b/i18n/en-US/usage.tpl @@ -1,4 +1,4 @@ -gpm is a Go package manage tool for search, install, update and share packages. +gpm(Go Package Manager) is a Go package manage tool for search, install, update, share packages. Usage: diff --git a/i18n/en-US/usage_build.txt b/i18n/en-US/usage_build.txt index 631f0bc17..a62b0ffc3 100644 --- a/i18n/en-US/usage_build.txt +++ b/i18n/en-US/usage_build.txt @@ -2,14 +2,6 @@ compile and install packages and dependencies||| Build compiles and installs the packages named by the import paths, along with their dependencies. -If the arguments are a list of .go files, build treats them as a list -of source files specifying a single package. - -When the command line specifies a single main package, -build writes the resulting executable to output. -Otherwise build compiles the packages but discards the results, -serving only as a check that the packages can be built. - If the package is main, the output file name is the base name of the containing directory. @@ -20,8 +12,7 @@ The build flags are shared by the build and test commands: -r run program after built. -The list flags accept a space-separated list of strings. To embed spaces -in an element in the list, surround it with either single or double quotes. +The list flags accept a space-separated list of strings. For more about specifying packages, see 'go help packages'. diff --git a/i18n/en-US/usage_check.txt b/i18n/en-US/usage_check.txt index a49b5d38a..028dbdfe6 100644 --- a/i18n/en-US/usage_check.txt +++ b/i18n/en-US/usage_check.txt @@ -5,5 +5,4 @@ and generate configure file. The check flags are: -The list flags accept a space-separated list of strings. To embed spaces -in an element in the list, surround it with either single or double quotes. +The list flags accept a space-separated list of strings. \ No newline at end of file diff --git a/i18n/en-US/usage_install.txt b/i18n/en-US/usage_install.txt index 1d31d0093..fbf8c226e 100644 --- a/i18n/en-US/usage_install.txt +++ b/i18n/en-US/usage_install.txt @@ -20,8 +20,7 @@ The install flags are: -s download from sources. -The list flags accept a space-separated list of strings. To embed spaces -in an element in the list, surround it with either single or double quotes. +The list flags accept a space-separated list of strings. For more about specifying packages, see 'go help packages'. For more about bundle, see 'gpm help bundle'. diff --git a/i18n/en-US/usage_remove.txt b/i18n/en-US/usage_remove.txt index deb597fb7..9ecacd506 100644 --- a/i18n/en-US/usage_remove.txt +++ b/i18n/en-US/usage_remove.txt @@ -5,8 +5,7 @@ along with their dependencies. The remove flags are: -The list flags accept a space-separated list of strings. To embed spaces -in an element in the list, surround it with either single or double quotes. +The list flags accept a space-separated list of strings. For more about specifying packages, see 'go help packages'. For more about bundle, see 'gpm help bundle'. diff --git a/i18n/en-US/usage_search.txt b/i18n/en-US/usage_search.txt index aadf6306a..7f9076eca 100644 --- a/i18n/en-US/usage_search.txt +++ b/i18n/en-US/usage_search.txt @@ -4,5 +4,4 @@ Search searchs packages by keyword. The search flags are: -The list flags accept a space-separated list of strings. To embed spaces -in an element in the list, surround it with either single or double quotes. +The list flags accept a space-separated list of strings. diff --git a/i18n/zh-CN/usage.tpl b/i18n/zh-CN/usage.tpl index a1bb4a1c9..0eaa59e12 100644 --- a/i18n/zh-CN/usage.tpl +++ b/i18n/zh-CN/usage.tpl @@ -1,18 +1,18 @@ -gpm is a Go package manage tool for search, install, update and share packages. +gpm(Go 包管理工具) 是一款涵盖搜索、安装、更新、分享功能 Go 包的管理工具。 -Usage: +用法: - gpm command [arguments] + gpm 命令 [参数] -The commands are: +命令列表: {{range .}}{{if .Runnable}} {{.Name | printf "%-11s"}} {{.Short}}{{end}}{{end}} -Use "gpm help [command]" for more information about a command. +使用 "gpm help [命令]" 来获取相关命令的更多信息. -Additional help topics: +其它帮助主题: {{range .}}{{if not .Runnable}} {{.Name | printf "%-11s"}} {{.Short}}{{end}}{{end}} -Use "gpm help [topic]" for more information about that topic. +使用 "gpm help [主题]" 来获取相关主题的更多信息. diff --git a/i18n/zh-CN/usage_build.txt b/i18n/zh-CN/usage_build.txt index 65f922f56..4a32d1071 100644 --- a/i18n/zh-CN/usage_build.txt +++ b/i18n/zh-CN/usage_build.txt @@ -1,29 +1,19 @@ -compile and install packages and dependencies||| -Build compiles and installs the packages named by the import paths, -along with their dependencies. +编译安装 Go 包及其依赖包||| +Build 命令编译并安装 Go 包以及其依赖包. -If the arguments are a list of .go files, build treats them as a list -of source files specifying a single package. +如果被安装的包为 main 包,则可执行文件的名称是根据包含该包的 +文件夹目录的名称决定的. -When the command line specifies a single main package, -build writes the resulting executable to output. -Otherwise build compiles the packages but discards the results, -serving only as a check that the packages can be built. - -If the package is main, the output file -name is the base name of the containing directory. - -The build flags are shared by the build and test commands: +下列参数可用于 build 和 test 命令: -v - print the names of packages as they are compiled. + 打印被编译包的名称列表. -r - run program after built. + 完成构建后运行程序. -The list flags accept a space-separated list of strings. To embed spaces -in an element in the list, surround it with either single or double quotes. +多个参数通过空格来间隔. -For more about specifying packages, see 'go help packages'. +获取更多有关包的信息,参见 'go help packages'. -See also: gpm install. +相关主题: gpm install. diff --git a/i18n/zh-CN/usage_check.txt b/i18n/zh-CN/usage_check.txt index a49b5d38a..59b3f7c24 100644 --- a/i18n/zh-CN/usage_check.txt +++ b/i18n/zh-CN/usage_check.txt @@ -1,9 +1,7 @@ -check packages dependencies||| -Check checks packages dependencies if have been installed -and generate configure file. +检查安装依赖包||| +Check 命令用于检查并安装缺失的依赖包,并生成依赖配置文件. -The check flags are: +下列参数可用于 check 命令: -The list flags accept a space-separated list of strings. To embed spaces -in an element in the list, surround it with either single or double quotes. +多个参数通过空格来间隔. diff --git a/i18n/zh-CN/usage_install.txt b/i18n/zh-CN/usage_install.txt index 277bbd3ed..a84a49f24 100644 --- a/i18n/zh-CN/usage_install.txt +++ b/i18n/zh-CN/usage_install.txt @@ -1,30 +1,27 @@ -download and install packages and dependencies||| -Install downloads and installs the packages named by the import paths, -along with their dependencies. +下载并安装 Go 包及其依赖包||| +Install 命令下载并安装 Go 包及其依赖包. -This command works even you haven't installed any version control tool -such as git, hg, etc. +即使您没有安装像 git、hg 这类版本控制工具,该命令依旧有效. -The install flags are: +下列参数可用于 install 命令: -p - pure download packages without version control. + 无版本控制的纯净下载. -c - download source code only. + 只下载代码文件. -d - download without installing packages. + 下载但不安装包. -u - force to update pakcages. + 强制更新包. -e - download dependencies for examples. + 下载示例代码中的依赖包. -s - download from sources. + 通过用户源下载. -The list flags accept a space-separated list of strings. To embed spaces -in an element in the list, surround it with either single or double quotes. +多个参数通过空格来间隔. -For more about specifying packages, see 'go help packages'. -For more about bundle, see 'gpm help bundle'. -For more about snapshot, see 'gpm help snapshot'. +获取更多有关包的信息,参见 'go help packages'. +获取更多有关集合的信息,参见 'gpm help bundle'. +获取更多有关快照的信息,参见 'gpm help snapshot'. -See also: gpm build. +相关主题: gpm build. diff --git a/i18n/zh-CN/usage_remove.txt b/i18n/zh-CN/usage_remove.txt index 5815c6962..08331b12d 100644 --- a/i18n/zh-CN/usage_remove.txt +++ b/i18n/zh-CN/usage_remove.txt @@ -1,15 +1,14 @@ -remove packages and dependencies||| -Remove removes the packages named by the import paths, -along with their dependencies. +删除 Go 包及其依赖包||| +Remove 命令删除 Go 包及其依赖包. -The remove flags are: +下列参数可用于 remove 命令: -The list flags accept a space-separated list of strings. To embed spaces -in an element in the list, surround it with either single or double quotes. +多个参数通过空格来间隔. -For more about specifying packages, see 'go help packages'. -For more about bundle, see 'gpm help bundle'. -For more about snapshot, see 'gpm help snapshot'. -See also: gpm install. \ No newline at end of file +获取更多有关包的信息,参见 'go help packages'. +获取更多有关集合的信息,参见 'gpm help bundle'. +获取更多有关快照的信息,参见 'gpm help snapshot'. + +相关主题: gpm install. \ No newline at end of file diff --git a/i18n/zh-CN/usage_search.txt b/i18n/zh-CN/usage_search.txt index aadf6306a..9a35ac1f2 100644 --- a/i18n/zh-CN/usage_search.txt +++ b/i18n/zh-CN/usage_search.txt @@ -1,8 +1,7 @@ -search packages||| -Search searchs packages by keyword. +搜索 Go 包||| +Search 命令通过关键字搜索 Go 包. -The search flags are: +下列参数可用于 search 命令: -The list flags accept a space-separated list of strings. To embed spaces -in an element in the list, surround it with either single or double quotes. +多个参数通过空格来间隔.