Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/bitfield/script
/ ExampleIfExists_noExec
Function
ExampleIfExists_noExec
script_unix_test.go:155–159 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
153
}
154
155
func
ExampleIfExists_noExec() {
156
script.IfExists(
"doesntexist"
).Exec(
"echo hello"
).Stdout()
157
// Output:
158
//
159
}
160
161
func
ExampleListFiles() {
162
script.ListFiles(
"testdata/multiple_files_with_subdirectory"
).Stdout()
Callers
nothing calls this directly
Calls
3
IfExists
Function · 0.92
Stdout
Method · 0.80
Exec
Method · 0.80
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…