(output: Rc<RefCell<String>>)
| 34 | |
| 35 | impl OutSepEndCommand { |
| 36 | pub(super) fn new(output: Rc<RefCell<String>>) -> Rc<Self> { |
| 37 | Rc::from(Self { |
| 38 | metadata: CallableMetadataBuilder::new("OUT_SEP_END") |
| 39 | .with_syntax(&[( |
| 40 | &[ |
| 41 | SingularArgSyntax::AnyValue( |
| 42 | AnyValueSyntax { name: Cow::Borrowed("first"), allow_missing: true }, |
| 43 | ArgSepSyntax::OneOf(&[ArgSep::Long, ArgSep::Short]), |
| 44 | ), |
| 45 | SingularArgSyntax::AnyValue( |
| 46 | AnyValueSyntax { name: Cow::Borrowed("second"), allow_missing: false }, |
| 47 | ArgSepSyntax::End, |
| 48 | ), |
| 49 | ], |
| 50 | None, |
| 51 | )]) |
| 52 | .test_build(), |
| 53 | output, |
| 54 | }) |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | impl Callable for OutSepEndCommand { |
nothing calls this directly
no test coverage detected