MCPcopy Create free account
hub / github.com/echosoar/canvas-cli / split_next_token

Function split_next_token

cli/src/main.rs:123–132  ·  view source on GitHub ↗
(s: &str)

Source from the content-addressed store, hash-verified

121}
122
123fn split_next_token(s: &str) -> Option<(&str, &str)> {
124 let trimmed = s.trim();
125 if trimmed.is_empty() {
126 return None;
127 }
128 let token_end = trimmed.find(char::is_whitespace).unwrap_or(trimmed.len());
129 let token = &trimmed[..token_end];
130 let rest = trimmed[token_end..].trim();
131 Some((token, rest))
132}
133
134fn is_ignored_command_line(s: &str) -> bool {
135 let trimmed = s.trim();

Callers 3

parse_round_rect_argsFunction · 0.85
execute_commandsFunction · 0.85

Calls

no outgoing calls