MCPcopy Index your code
hub / github.com/endbasic/endbasic / new

Method new

core/tests/testutils/callables/out_sep_end_cmd.rs:36–55  ·  view source on GitHub ↗
(output: Rc<RefCell<String>>)

Source from the content-addressed store, hash-verified

34
35impl 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
58impl Callable for OutSepEndCommand {

Callers

nothing calls this directly

Calls 2

test_buildMethod · 0.80
with_syntaxMethod · 0.80

Tested by

no test coverage detected