MCPcopy Create free account
hub / github.com/daniele77/cli / ExtractFirstPrompt

Function ExtractFirstPrompt

test/test_cli.cpp:40–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38namespace {
39
40string ExtractFirstPrompt(const stringstream& o)
41{
42 auto content = o.str();
43 std::size_t pos = content.find_first_of('>');
44 return content.substr(0, pos);
45}
46
47string ExtractLastPrompt(const stringstream& o)
48{

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected