MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / parser

Function parser

tests/test_parsing.py:21–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19
20@pytest.fixture
21def parser():
22 return StatementParser(
23 terminators=[";", "&"],
24 multiline_commands=["multiline"],
25 aliases={
26 "helpalias": "help",
27 "42": "theanswer",
28 "l": "!ls -al",
29 "anothermultiline": "multiline",
30 "fake": "run_pyscript",
31 },
32 shortcuts={"?": "help", "!": "shell"},
33 )
34
35
36@pytest.fixture

Callers

nothing calls this directly

Calls 1

StatementParserClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…