MCPcopy
hub / github.com/dagger/dagger / OptionalArgs

Method OptionalArgs

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

Source from the content-addressed store, hash-verified

1084}
1085
1086func (f *modFunction) OptionalArgs() []*modFunctionArg {
1087 args := make([]*modFunctionArg, 0, len(f.Args))
1088 for _, arg := range f.Args {
1089 if !arg.IsRequired() {
1090 args = append(args, arg)
1091 }
1092 }
1093 return args
1094}
1095
1096func (f *modFunction) SupportedArgs() []*modFunctionArg {
1097 args := make([]*modFunctionArg, 0, len(f.Args))

Callers 6

completionsMethod · 0.80
shellPreprocessArgsMethod · 0.80
FunctionUseLineMethod · 0.80
FunctionFullUseLineMethod · 0.80
ModuleDocMethod · 0.80
FunctionDocMethod · 0.80

Calls 1

IsRequiredMethod · 0.80

Tested by

no test coverage detected