write the input file if a json or yaml string is provided
(ctx context.Context, data string)
| 140 | |
| 141 | // write the input file if a json or yaml string is provided |
| 142 | func inputFromString(ctx context.Context, data string) ([]string, error) { |
| 143 | data, err := utils.WriteTempFile(ctx, data, "input-file-") |
| 144 | if err != nil { |
| 145 | return nil, err |
| 146 | } |
| 147 | return []string{data}, nil |
| 148 | } |
no test coverage detected