( entrypoint string, dir string, insecure bool, timeout time.Duration, opts ...NodeOption, )
| 31 | } |
| 32 | |
| 33 | func NewRootNode( |
| 34 | entrypoint string, |
| 35 | dir string, |
| 36 | insecure bool, |
| 37 | timeout time.Duration, |
| 38 | opts ...NodeOption, |
| 39 | ) (Node, error) { |
| 40 | dir = fsext.DefaultDir(entrypoint, dir) |
| 41 | // If the entrypoint is "-", we read from stdin |
| 42 | if entrypoint == "-" { |
| 43 | return NewStdinNode(dir) |
| 44 | } |
| 45 | return NewNode(entrypoint, dir, insecure, opts...) |
| 46 | } |
| 47 | |
| 48 | func NewNode( |
| 49 | entrypoint string, |
no test coverage detected
searching dependent graphs…