MCPcopy
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
155func ExampleIfExists_noExec() {
156 script.IfExists("doesntexist").Exec("echo hello").Stdout()
157 // Output:
158 //
159}
160
161func ExampleListFiles() {
162 script.ListFiles("testdata/multiple_files_with_subdirectory").Stdout()

Callers

nothing calls this directly

Calls 3

IfExistsFunction · 0.92
StdoutMethod · 0.80
ExecMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…