(name string, defaultValue string, parameters []plugin.ExecutionParameter)
| 91 | } |
| 92 | |
| 93 | func (c DigitizeCommand) getStringParameter(name string, defaultValue string, parameters []plugin.ExecutionParameter) string { |
| 94 | result := defaultValue |
| 95 | for _, p := range parameters { |
| 96 | if p.Name == name { |
| 97 | if data, ok := p.Value.(string); ok { |
| 98 | result = data |
| 99 | break |
| 100 | } |
| 101 | } |
| 102 | } |
| 103 | return result |
| 104 | } |
| 105 | |
| 106 | func (c DigitizeCommand) getFileParameter(parameters []plugin.ExecutionParameter) stream.Stream { |
| 107 | var result stream.Stream |
no outgoing calls
no test coverage detected