MCPcopy Index your code
hub / github.com/dagger/dagger / HumanString

Method HumanString

core/modulesource.go:97–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95}
96
97func (proto ModuleSourceKind) HumanString() string {
98 switch proto {
99 case ModuleSourceKindLocal:
100 return "local"
101 case ModuleSourceKindGit:
102 return "git"
103 case ModuleSourceKindDir:
104 return "directory"
105 default:
106 return string(proto)
107 }
108}
109
110type SDKConfig struct {
111 Source string `field:"true" name:"source" doc:"Source of the SDK. Either a name of a builtin SDK or a module source ref string pointing to the SDK's implementation."`

Callers 2

moduleSourceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected