MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / filename_looks_like_dockerfile

Function filename_looks_like_dockerfile

crates/openshell-cli/src/run.rs:2467–2474  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

2465}
2466
2467fn filename_looks_like_dockerfile(path: &Path) -> bool {
2468 let name = path
2469 .file_name()
2470 .map(|n| n.to_string_lossy())
2471 .unwrap_or_default();
2472 let lower = name.to_lowercase();
2473 lower.contains("dockerfile") || lower.ends_with(".dockerfile")
2474}
2475
2476fn value_looks_like_local_source(value: &str) -> bool {
2477 value_is_explicit_local_path(value) || value_looks_like_bare_dockerfile_name(value)

Callers 2

resolve_fromFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected