NewModuleInputConfig returns an input config for a module.
( location string, )
| 199 | |
| 200 | // NewModuleInputConfig returns an input config for a module. |
| 201 | func NewModuleInputConfig( |
| 202 | location string, |
| 203 | ) (InputConfig, error) { |
| 204 | if location == "" { |
| 205 | return nil, errors.New("empty location for module") |
| 206 | } |
| 207 | return &inputConfig{ |
| 208 | inputConfigType: InputConfigTypeModule, |
| 209 | location: location, |
| 210 | }, nil |
| 211 | } |
| 212 | |
| 213 | // NewDirectoryInputConfig returns an input config for a directory. |
| 214 | func NewDirectoryInputConfig( |
no outgoing calls
no test coverage detected
searching dependent graphs…