| 1067 | } |
| 1068 | |
| 1069 | func (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 | |
| 1081 | func (arg Argument) Experimental(paras ...string) Argument { |
| 1082 | if len(paras) == 0 && arg.Spec.Description != "" { |