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

Method DaggerCli

toolchains/engine-dev/internal/dagger/dagger-cli.gen.go:321–349  ·  view source on GitHub ↗

Develop the Dagger CLI

(opts ...DaggerCliOpts)

Source from the content-addressed store, hash-verified

319
320// Develop the Dagger CLI
321func (r *Query) DaggerCli(opts ...DaggerCliOpts) *DaggerCli { // dagger-cli (../../../../toolchains/cli-dev/main.go:12:1)
322 q := r.query.Select("daggerCli")
323 for i := len(opts) - 1; i >= 0; i-- {
324 // `runnerHost` optional argument
325 if !querybuilder.IsZeroValue(opts[i].RunnerHost) {
326 q = q.Arg("runnerHost", opts[i].RunnerHost)
327 }
328 // `source` optional argument
329 if !querybuilder.IsZeroValue(opts[i].Source) {
330 q = q.Arg("source", opts[i].Source)
331 }
332 // `base` optional argument
333 if !querybuilder.IsZeroValue(opts[i].Base) {
334 q = q.Arg("base", opts[i].Base)
335 }
336 // `version` optional argument
337 if !querybuilder.IsZeroValue(opts[i].Version) {
338 q = q.Arg("version", opts[i].Version)
339 }
340 // `imageTag` optional argument
341 if !querybuilder.IsZeroValue(opts[i].ImageTag) {
342 q = q.Arg("imageTag", opts[i].ImageTag)
343 }
344 }
345
346 return &DaggerCli{
347 query: q,
348 }
349}

Callers 3

testContainerMethod · 0.45
ContainerMethod · 0.45
InstallClientMethod · 0.45

Calls 2

SelectMethod · 0.65
ArgMethod · 0.45

Tested by

no test coverage detected