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}} |
||||
{{.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 [主题]" 来获取相关主题的更多信息. |
||||
|
||||
|
@ -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. |
||||
|
||||
|
@ -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. |
||||
多个参数通过空格来间隔. |
||||
|
@ -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. |
||||
|
@ -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. |
||||
获取更多有关包的信息,参见 'go help packages'. |
||||
获取更多有关集合的信息,参见 'gpm help bundle'. |
||||
获取更多有关快照的信息,参见 'gpm help snapshot'. |
||||
|
||||
相关主题: gpm install. |
@ -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. |
||||
多个参数通过空格来间隔. |
||||
|
Loading…
Reference in new issue