allow calling Protocols from textparser

This commit is contained in:
Noa Aarts 2024-12-11 12:50:34 +01:00
parent 823f4a306a
commit 6dc11526d8
Signed by: noa
GPG key ID: 1850932741EFF672

View file

@ -117,6 +117,8 @@ impl<R: AsyncBufRead + AsyncBufReadExt + std::marker::Unpin> Parser<R> for TextP
if reader.read_line(&mut line).await.is_ok() {
if line.starts_with("HELP") {
return Ok(Command::Help);
} else if line.starts_with("PROTOCOLS") {
return Ok(Command::Protocols);
} else if line.starts_with("SIZE") {
return Ok(Command::Size(self.canvas));
} else if line.starts_with("PX ") {