This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Grype.
Summary
Runs a command with
-q and -o json, and parses its standard output.
- Assembly
- Cake
.Grype .dll - Namespace
- Cake
.Grype - Containing Type
- GrypeTool
<TSettings>
Syntax
protected T RunAndReadJson<T>(TSettings settings, params string[] command) where T : class
Remarks
Standard output is read before
PostAction runs, because redirected output can only
be read once. The exit code is checked (see AcceptsExitCode(int, string)) before the output is parsed.
Type Parameters
| Name | Description |
|---|---|
| T | The result type. |
Parameters
| Name | Type | Description |
|---|---|---|
| settings | TSettings | The settings. |
| command | string[] | The command words. |
Return Value
| Type | Description |
|---|---|
| T | The parsed result. |
