2 Star 0 Fork 1

mirrors_kardianos/govendor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
helpText.go 4.88 KB
一键复制 编辑 原始数据 按行查看 历史
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import (
"strings"
"github.com/kardianos/govendor/migrate"
)
var helpFull = `govendor: copy go packages locally from GOPATH or remote. Uses vendor folder.
Sub-Commands
init Create the "vendor" folder and the "vendor.json" file.
list List and filter existing dependencies and packages.
add Add packages from $GOPATH.
update Update packages from $GOPATH.
remove Remove packages from the vendor folder.
status Lists any packages missing, out-of-date, or modified locally.
fetch (beta) Add new or update existing packages from remote repository.
sync (beta) Pull in packages from remote respository to match vendor.json file.
migrate Move packages from a legacy tool to the vendor folder with metadata.
get Like "go get" but copies dependencies into a "vendor" folder.
go tool commands that are wrapped:
"+status" package selection may be used with them
fmt, build, install, clean, test, vet, generate
Status Types
+local (l) packages in your project
+external (e) referenced packages in GOPATH but not in current project
+vendor (v) packages in the vendor folder
+std (s) packages in the standard library
+unused (u) packages in the vendor folder, but unused
+missing (m) referenced packages but not found
+program (p) package is a main package
+outside +external +missing
+all +all packages
Status can be referenced by their initial letters.
Package specifier
<path>[::<origin>][{/...|/^}][@[<version-spec>]]
Ignoring files with build tags:
The "vendor.json" file contains a string field named "ignore".
It may contain a space separated list of build tags to ignore when
listing and copying files. By default the init command adds the
the "test" tag to the ignore list.
If using go1.5, ensure you set GO15VENDOREXPERIMENT=1
`
var helpInit = `govendor init
Create a vendor folder in the working directory and a vendor/vendor.json
metadata file.
`
var helpList = `govendor list [options] ( +status or import-path-filter )
List all dependencies and packages in folder tree.
Options:
-v verbose listing, show dependencies of each package
-no-status do not prefix status to list, package names only
Examples:
$ govendor list -no-status +local
$ govendor list +vend,prog +local,program
$ govendor list +local,^prog
`
var helpAdd = `govendor add [options] ( +status or import-path-filter )
Copy one or more packages into the vendor folder from GOPATH.
Options:
-n dry run and print actions that would be taken
-tree copy package(s) and all sub-folders under each package
-uncommitted allows copying a package with uncommitted changes, doesn't
update revision or checksum so it will always be out-of-date.
The following may be replaced with something else in the future.
-short if conflict, take short path
-long if conflict, take long path
`
var helpUpdate = `govendor update [options] ( +status or import-path-filter )
Update one or more packages from GOPATH into the vendor folder from GOPATH.
Options:
-n dry run and print actions that would be taken
-tree copy package(s) and all sub-folders under each package
-uncommitted allows copying a package with uncommitted changes, doesn't
update revision or checksum so it will always be out-of-date.
The following may be replaced with something else in the future.
-short if conflict, take short path
-long if conflict, take long path
`
var helpRemove = `govendor remove [options] ( +status or import-path-filter )
Remove one or more packages from the vendor folder.
Options:
-n dry run and print actions that would be taken
`
var helpFetch = `govendor fetch [options] ( +status or package-spec )
Fetches packages directly into the vendor folder.
package-sepc = <path>[::<origin>][{/...|/^}][@[<version-spec>]]
Options:
-tree copy package(s) and all sub-folders under each package
-insecure allow downloading over insecure connection
-v verbose mode
`
var helpSync = `govendor sync
Ensures the contents of the vendor folder matches the vendor file.
Options:
-insecure allow downloading over insecure connection
`
var helpStatus = `govendor status
Shows any packages that are missing, out-of-date, or modified locally (according to the
checksum) and should be sync'ed.
`
var helpMigrate = `govendor migrate [` + strings.Join(migrate.SystemList(), ", ") + `]
Change from a one schema to use the vendor folder. Default to auto detect.
`
var helpGet = `govendor get [options] (import-path)...
Download package into GOPATH, put all dependencies into vendor folder.
Options:
-insecure allow downloading over insecure connection
-v verbose mode
`
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_kardianos/govendor.git
git@gitee.com:mirrors_kardianos/govendor.git
mirrors_kardianos
govendor
govendor
v1.0.0

搜索帮助