代码拉取完成,页面将自动刷新
// 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
`
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。