MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / command_stream_summary

Function command_stream_summary

packages/server/src/android.rs:1730–1741  ·  view source on GitHub ↗
(bytes: &[u8])

Source from the content-addressed store, hash-verified

1728}
1729
1730fn command_stream_summary(bytes: &[u8]) -> Option<String> {
1731 let text = String::from_utf8_lossy(bytes);
1732 let trimmed = text.trim();
1733 if trimmed.is_empty() {
1734 return None;
1735 }
1736 let mut summary = trimmed.chars().take(2000).collect::<String>();
1737 if trimmed.chars().nth(2000).is_some() {
1738 summary.push_str("...");
1739 }
1740 Some(summary)
1741}
1742
1743fn sdk_root() -> PathBuf {
1744 env::var_os("ANDROID_HOME")

Callers 1

run_command_with_stdinFunction · 0.85

Calls 1

is_emptyMethod · 0.80

Tested by

no test coverage detected