- Add NozJsonContext / NozJsonContextPretty source generator contexts - Replace all reflection-based JSON with source-generated overloads - Add NotesCacheFile record for persistent note cache - Add date field to NoteInfo, CancellationToken to all API methods - LocalConfig uses source-generated serialization (compact + indented)
18 lines
300 B
C#
18 lines
300 B
C#
namespace NozCli.Core.Models;
|
|
|
|
public record NoteInfo(
|
|
string Slug,
|
|
string Title,
|
|
string Status,
|
|
string Topic,
|
|
string Lang,
|
|
bool Private,
|
|
string? Hash,
|
|
string? Date = null
|
|
);
|
|
|
|
public record NoteContent(
|
|
string Slug,
|
|
string Markdown,
|
|
string Hash
|
|
);
|