Method
getFileParameter
(parameters []plugin.ExecutionParameter)
Source from the content-addressed store, hash-verified
| 104 | } |
| 105 | |
| 106 | func (c DigitizeCommand) getFileParameter(parameters []plugin.ExecutionParameter) stream.Stream { |
| 107 | var result stream.Stream |
| 108 | for _, p := range parameters { |
| 109 | if p.Name == "file" { |
| 110 | if stream, ok := p.Value.(stream.Stream); ok { |
| 111 | result = stream |
| 112 | break |
| 113 | } |
| 114 | } |
| 115 | } |
| 116 | return result |
| 117 | } |
| 118 | |
| 119 | func NewDigitizeCommand() *DigitizeCommand { |
| 120 | return &DigitizeCommand{} |
Tested by
no test coverage detected