package jsonl import ( "gitea.k3s.k0.nu/tools/photocli/internal/manifest/types" ) type Adapter struct{} func (Adapter) Format() types.Format { return types.FormatJSONL } func (Adapter) Aliases() []string { return []string{"json"} } func (Adapter) Path(dir string) string { return Path(dir) } func (Adapter) Exists(dir string) bool { return FileExists(Path(dir)) } func (Adapter) Open(dir string) (types.Manifest, error) { return Load(dir), nil } func (Adapter) OpenLogWriter(_ types.Manifest, dir string) (types.LogWriter, error) { return types.NewFileLogWriter(types.LogPath(dir)) }