MCPcopy Create free account
hub / github.com/GCWing/BitFun / shell_quote

Function shell_quote

src/apps/desktop/src/api/git_api.rs:41–50  ·  view source on GitHub ↗
(value: &str)

Source from the content-addressed store, hash-verified

39}
40
41fn shell_quote(value: &str) -> String {
42 if value
43 .chars()
44 .all(|c| c.is_ascii_alphanumeric() || matches!(c, '/' | '.' | '-' | '_' | ':' | '=' | '@'))
45 {
46 value.to_string()
47 } else {
48 format!("'{}'", value.replace('\'', "'\\''"))
49 }
50}
51
52fn build_remote_git_command(repository_path: &str, args: &[String]) -> String {
53 let mut parts = vec![

Callers 1

build_remote_git_commandFunction · 0.85

Calls 1

allMethod · 0.80

Tested by

no test coverage detected