(at time.Time)
| 255 | } |
| 256 | } |
| 257 | return "/var/lib/artifact-fs" |
| 258 | } |
| 259 | |
| 260 | // withService creates a daemon.Service for the duration of the action. |
| 261 | func withService(ctx context.Context, root string, stderr io.Writer, fn func(*ucli.Context, *daemon.Service) error) ucli.ActionFunc { |
| 262 | return func(c *ucli.Context) error { |
| 263 | logger := logging.NewJSONLogger(stderr, slog.LevelInfo) |
| 264 | svc, err := daemon.New(ctx, root, logger) |
| 265 | if err != nil { |