(name, usage string, stdout io.Writer)
| 276 | Name: name, |
| 277 | Usage: usage, |
| 278 | Flags: []ucli.Flag{ucli.StringFlag{Name: "name", Usage: "repo name (required)"}}, |
| 279 | Action: withService(ctx, root, stderr, func(c *ucli.Context, svc *daemon.Service) error { |
| 280 | n := strings.TrimSpace(c.String("name")) |
| 281 | if n == "" { |
| 282 | return fmt.Errorf("--name required") |
| 283 | } |
| 284 | return fn(ctx, svc, n, stdout) |
| 285 | }), |
| 286 | } |
| 287 | } |
| 288 | |
| 289 | func formatStatusLine(st model.RepoRuntimeState) string { |
| 290 | requiredCommit := st.RequiredCommit |
| 291 | if requiredCommit == "" { |