Получение полного списка снимков

This commit is contained in:
Alexander Zhirov 2025-09-12 17:06:12 +03:00
parent 9ba43b0e38
commit e42aacbed7
Signed by: alexander
GPG key ID: C8D8BE544A27C511
4 changed files with 18 additions and 26 deletions

View file

@ -7,10 +7,12 @@ import std.file : read;
void main()
{
auto cas = new CAS("/tmp/base.db", true);
cas.newSnapshot("/tmp/text", cast(ubyte[]) read("/tmp/text"));
cas.newSnapshot("/tmp/texts", cast(ubyte[]) read("/tmp/text"));
// import std.stdio : writeln;
writeln(cas.getSnapshotList("/tmp/text"));
foreach (snapshot; cas.getSnapshots()) {
writeln(snapshot);
}
// writeln(cas.getVersion);
}