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

Function value_looks_like_bare_dockerfile_name

crates/openshell-cli/src/run.rs:2489–2491  ·  view source on GitHub ↗
(value: &str)

Source from the content-addressed store, hash-verified

2487}
2488
2489fn value_looks_like_bare_dockerfile_name(value: &str) -> bool {
2490 !value.contains('/') && !value.contains(':') && filename_looks_like_dockerfile(Path::new(value))
2491}
2492
2493fn dockerfile_sources_supported_for_gateway(metadata: Option<&GatewayMetadata>) -> bool {
2494 !metadata.is_some_and(|metadata| metadata.is_remote)

Callers 1

Calls 1

Tested by

no test coverage detected