MCPcopy Create free account
hub / github.com/dagger/dagger / Deprecated

Method Deprecated

dagql/objects.go:1069–1079  ·  view source on GitHub ↗
(paras ...string)

Source from the content-addressed store, hash-verified

1067}
1068
1069func (arg Argument) Deprecated(paras ...string) Argument {
1070 if len(paras) == 0 && arg.Spec.Description != "" {
1071 reason := arg.Spec.Description
1072 arg.Spec.DeprecatedReason = &reason
1073 arg.Spec.Description = deprecationDescription(arg.Spec.Description)
1074 return arg
1075 }
1076 reason := FormatDescription(paras...)
1077 arg.Spec.DeprecatedReason = &reason
1078 return arg
1079}
1080
1081func (arg Argument) Experimental(paras ...string) Argument {
1082 if len(paras) == 0 && arg.Spec.Description != "" {

Callers 1

TestIntrospectionFunction · 0.45

Calls 2

deprecationDescriptionFunction · 0.85
FormatDescriptionFunction · 0.85

Tested by 1

TestIntrospectionFunction · 0.36