| 35 | ) |
| 36 | |
| 37 | func GetPathConfig(o *options.FuncletOptions) *file.PathConfig { |
| 38 | return &file.PathConfig{ |
| 39 | RunnerDataPath: o.RunnerDataPath, |
| 40 | RunnerSpecPath: o.RunnerSpecPath, |
| 41 | RunnerTmpPath: tmp.RunnersTmpPath, |
| 42 | CodeWorkspacePath: tmp.CodeWorkspacePath, |
| 43 | EtcPath: o.RunnerSpecOption.EtcPath, |
| 44 | ConfPath: o.RunnerSpecOption.ConfPath, |
| 45 | CodePath: o.RunnerSpecOption.CodePath, |
| 46 | RuntimePath: o.RunnerSpecOption.RuntimePath, |
| 47 | RunningMode: o.RunningMode, |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | func ReaderToLog(r io.ReadCloser, logger *logs.Logger) { |
| 52 | logger.Info("start logger") |