(ctx context.Context)
| 28 | } |
| 29 | |
| 30 | func newDocsBatchStore(ctx context.Context) (*docsbatch.Repository, error) { |
| 31 | store, err := openDocsBatchStore(ctx) |
| 32 | if err != nil { |
| 33 | return nil, err |
| 34 | } |
| 35 | if err := store.Ensure(); err != nil { |
| 36 | return nil, err |
| 37 | } |
| 38 | |
| 39 | return store, nil |
| 40 | } |
| 41 | |
| 42 | func openDocsBatchStore(ctx context.Context) (*docsbatch.Repository, error) { |
| 43 | layout, err := commandLayout(ctx, config.PathKindState) |