MCPcopy
hub / github.com/bitfield/script / ExamplePipe_CountLines

Function ExamplePipe_CountLines

script_test.go:2287–2295  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2285}
2286
2287func ExamplePipe_CountLines() {
2288 n, err := script.Echo("a\nb\nc\n").CountLines()
2289 if err != nil {
2290 panic(err)
2291 }
2292 fmt.Println(n)
2293 // Output:
2294 // 3
2295}
2296
2297func ExamplePipe_DecodeBase64() {
2298 script.Echo("SGVsbG8sIHdvcmxkIQ==").DecodeBase64().Stdout()

Callers

nothing calls this directly

Calls 2

EchoFunction · 0.92
CountLinesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…