Skip to content

Commit

Permalink
gps: Strings for calltypes
Browse files Browse the repository at this point in the history
  • Loading branch information
sdboyer committed Oct 13, 2017
1 parent 6bbd19d commit 8de86c4
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions internal/gps/source_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8de86c4

Please sign in to comment.