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

Method IsRequired

cmd/dagger/module_inspect.go:1180–1182  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1178}
1179
1180func (r *modFunctionArg) IsRequired() bool {
1181 return !r.TypeDef.Optional && r.DefaultValue == ""
1182}
1183
1184func (r *modFunctionArg) IsUnsupportedFlag() bool {
1185 flags := pflag.NewFlagSet("test", pflag.ContinueOnError)

Callers 6

HasRequiredArgsMethod · 0.80
RequiredArgsMethod · 0.80
OptionalArgsMethod · 0.80
HasUnsupportedFlagsMethod · 0.80
addFlagsForFunctionMethod · 0.80
selectFuncMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected