(context *cli.Context)
| 83 | } |
| 84 | |
| 85 | func revisePidFile(context *cli.Context) error { |
| 86 | pidFile := context.String("pid-file") |
| 87 | if pidFile == "" { |
| 88 | return nil |
| 89 | } |
| 90 | |
| 91 | // convert pid-file to an absolute path so we can write to the right |
| 92 | // file after chdir to bundle |
| 93 | pidFile, err := filepath.Abs(pidFile) |
| 94 | if err != nil { |
| 95 | return err |
| 96 | } |
| 97 | return context.Set("pid-file", pidFile) |
| 98 | } |
| 99 | |
| 100 | // reviseRootDir ensures that the --root option argument, |
| 101 | // if specified, is converted to an absolute and cleaned path, |
no test coverage detected
searching dependent graphs…