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

Function push_optional_arg

packages/server/src/main.rs:3559–3563  ·  view source on GitHub ↗
(args: &mut Vec<String>, name: &str, value: Option<String>)

Source from the content-addressed store, hash-verified

3557}
3558
3559fn push_optional_arg(args: &mut Vec<String>, name: &str, value: Option<String>) {
3560 if let Some(value) = value.filter(|value| !value.trim().is_empty()) {
3561 push_arg(args, name, value);
3562 }
3563}
3564
3565fn push_optional_path_arg(args: &mut Vec<String>, name: &str, value: Option<PathBuf>) {
3566 if let Some(value) = value {

Callers 1

run_provider_commandFunction · 0.85

Calls 2

push_argFunction · 0.85
is_emptyMethod · 0.80

Tested by

no test coverage detected