MCPcopy
hub / github.com/dagger/dagger / RequiredArgs

Method RequiredArgs

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

Source from the content-addressed store, hash-verified

1074}
1075
1076func (f *modFunction) RequiredArgs() []*modFunctionArg {
1077 args := make([]*modFunctionArg, 0, len(f.Args))
1078 for _, arg := range f.Args {
1079 if arg.IsRequired() {
1080 args = append(args, arg)
1081 }
1082 }
1083 return args
1084}
1085
1086func (f *modFunction) OptionalArgs() []*modFunctionArg {
1087 args := make([]*modFunctionArg, 0, len(f.Args))

Callers 4

shellPreprocessArgsMethod · 0.80
FunctionUseLineMethod · 0.80
ModuleDocMethod · 0.80
FunctionDocMethod · 0.80

Calls 1

IsRequiredMethod · 0.80

Tested by

no test coverage detected