MCPcopy Index your code
hub / github.com/cloudfoundry/cli / GetContentsFromFlagValue

Function GetContentsFromFlagValue

cf/flagcontext/flag_content_helper.go:9–15  ·  view source on GitHub ↗
(input string)

Source from the content-addressed store, hash-verified

7)
8
9func GetContentsFromFlagValue(input string) ([]byte, error) {
10 if len(input) == 0 {
11 return []byte{}, fmt.Errorf("invalid input: %s", input)
12 }
13
14 return GetContentsFromOptionalFlagValue(input)
15}
16
17func GetContentsFromOptionalFlagValue(input string) ([]byte, error) {
18 trimmedInput := strings.Trim(input, `"'`)

Callers 4

ExecuteMethod · 0.92
ExecuteMethod · 0.92
ExecuteMethod · 0.92

Calls 1

Tested by

no test coverage detected