MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / IsCalledFromPipe

Function IsCalledFromPipe

pkg/util/pipe.go:8–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6)
7
8func IsCalledFromPipe() bool {
9 fileInfo, _ := os.Stdin.Stat()
10 return fileInfo != nil && fileInfo.Mode()&os.ModeCharDevice == 0
11}
12
13// ReadValuesFromPipe will return an array of strings from the pipe
14// input separated by new line.

Callers 1

ReadValuesFromPipeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected