mirror of https://github.com/gogits/gogs.git
Unknown
12 years ago
15 changed files with 61 additions and 89 deletions
@ -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}} |
{{range .}}{{if .Runnable}} |
||||||
{{.Name | printf "%-11s"}} {{.Short}}{{end}}{{end}} |
{{.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}} |
{{range .}}{{if not .Runnable}} |
||||||
{{.Name | printf "%-11s"}} {{.Short}}{{end}}{{end}} |
{{.Name | printf "%-11s"}} {{.Short}}{{end}}{{end}} |
||||||
|
|
||||||
Use "gpm help [topic]" for more information about that topic. |
使用 "gpm help [主题]" 来获取相关主题的更多信息. |
||||||
|
|
||||||
|
@ -1,29 +1,19 @@ |
|||||||
compile and install packages and dependencies||| |
编译安装 Go 包及其依赖包||| |
||||||
Build compiles and installs the packages named by the import paths, |
Build 命令编译并安装 Go 包以及其依赖包. |
||||||
along with their dependencies. |
|
||||||
|
|
||||||
If the arguments are a list of .go files, build treats them as a list |
如果被安装的包为 main 包,则可执行文件的名称是根据包含该包的 |
||||||
of source files specifying a single package. |
文件夹目录的名称决定的. |
||||||
|
|
||||||
When the command line specifies a single main package, |
下列参数可用于 build 和 test 命令: |
||||||
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: |
|
||||||
|
|
||||||
-v |
-v |
||||||
print the names of packages as they are compiled. |
打印被编译包的名称列表. |
||||||
-r |
-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. |
||||||
|
|
||||||
|
@ -1,9 +1,7 @@ |
|||||||
check packages dependencies||| |
检查安装依赖包||| |
||||||
Check checks packages dependencies if have been installed |
Check 命令用于检查并安装缺失的依赖包,并生成依赖配置文件. |
||||||
and generate configure file. |
|
||||||
|
|
||||||
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. |
|
||||||
|
@ -1,30 +1,27 @@ |
|||||||
download and install packages and dependencies||| |
下载并安装 Go 包及其依赖包||| |
||||||
Install downloads and installs the packages named by the import paths, |
Install 命令下载并安装 Go 包及其依赖包. |
||||||
along with their dependencies. |
|
||||||
|
|
||||||
This command works even you haven't installed any version control tool |
即使您没有安装像 git、hg 这类版本控制工具,该命令依旧有效. |
||||||
such as git, hg, etc. |
|
||||||
|
|
||||||
The install flags are: |
下列参数可用于 install 命令: |
||||||
|
|
||||||
-p |
-p |
||||||
pure download packages without version control. |
无版本控制的纯净下载. |
||||||
-c |
-c |
||||||
download source code only. |
只下载代码文件. |
||||||
-d |
-d |
||||||
download without installing packages. |
下载但不安装包. |
||||||
-u |
-u |
||||||
force to update pakcages. |
强制更新包. |
||||||
-e |
-e |
||||||
download dependencies for examples. |
下载示例代码中的依赖包. |
||||||
-s |
-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'. |
获取更多有关包的信息,参见 'go help packages'. |
||||||
For more about bundle, see 'gpm help bundle'. |
获取更多有关集合的信息,参见 'gpm help bundle'. |
||||||
For more about snapshot, see 'gpm help snapshot'. |
获取更多有关快照的信息,参见 'gpm help snapshot'. |
||||||
|
|
||||||
See also: gpm build. |
相关主题: gpm build. |
||||||
|
@ -1,15 +1,14 @@ |
|||||||
remove packages and dependencies||| |
删除 Go 包及其依赖包||| |
||||||
Remove removes the packages named by the import paths, |
Remove 命令删除 Go 包及其依赖包. |
||||||
along with their dependencies. |
|
||||||
|
|
||||||
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. |
获取更多有关包的信息,参见 'go help packages'. |
||||||
|
获取更多有关集合的信息,参见 'gpm help bundle'. |
||||||
|
获取更多有关快照的信息,参见 'gpm help snapshot'. |
||||||
|
|
||||||
|
相关主题: gpm install. |
@ -1,8 +1,7 @@ |
|||||||
search packages||| |
搜索 Go 包||| |
||||||
Search searchs packages by keyword. |
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. |
|
||||||
|
Loading…
Reference in new issue