Help outputs the help of perkeepd from the World.
()
| 129 | |
| 130 | // Help outputs the help of perkeepd from the World. |
| 131 | func (w *World) Help() ([]byte, error) { |
| 132 | if err := w.Build(); err != nil { |
| 133 | return nil, err |
| 134 | } |
| 135 | pkdbin := w.lookPathGobin("perkeepd") |
| 136 | // Run perkeepd -help. |
| 137 | cmd := exec.Command(pkdbin, "-help") |
| 138 | return cmd.CombinedOutput() |
| 139 | } |
| 140 | |
| 141 | // Start builds the Perkeep binaries and starts a server. |
| 142 | func (w *World) Start() error { |