зеркало из https://github.com/golang/dep.git
gps: Strings for calltypes
This commit is contained in:
Родитель
6bbd19d908
Коммит
8de86c40c3
|
@ -741,6 +741,29 @@ const (
|
|||
ctExportTree
|
||||
)
|
||||
|
||||
func (ct callType) String() string {
|
||||
switch ct {
|
||||
case ctHTTPMetadata:
|
||||
return "Retrieving go get metadata"
|
||||
case ctListVersions:
|
||||
return "Retrieving latest version list"
|
||||
case ctGetManifestAndLock:
|
||||
return "Reading manifest and lock data"
|
||||
case ctListPackages:
|
||||
return "Parsing PackageTree"
|
||||
case ctSourcePing:
|
||||
return "Checking for upstream existence"
|
||||
case ctSourceInit:
|
||||
return "Initializing local source cache"
|
||||
case ctSourceFetch:
|
||||
return "Fetching latest data into local source cache"
|
||||
case ctExportTree:
|
||||
return "Writing code tree out to disk"
|
||||
default:
|
||||
panic("unknown calltype")
|
||||
}
|
||||
}
|
||||
|
||||
// callInfo provides metadata about an ongoing call.
|
||||
type callInfo struct {
|
||||
name string
|
||||
|
|
Загрузка…
Ссылка в новой задаче