mirror of
https://github.com/openSUSE/snapper.git
synced 2026-02-06 18:46:06 +01:00
23 lines
347 B
C++
23 lines
347 B
C++
|
|
#include <cstdlib>
|
|
#include <iostream>
|
|
|
|
#include <snapper/Snapper.h>
|
|
|
|
using namespace snapper;
|
|
using namespace std;
|
|
|
|
|
|
int
|
|
main(int argc, char** argv)
|
|
{
|
|
Snapper snapper("root", "/");
|
|
|
|
const Snapshots& snapshots = snapper.getSnapshots();
|
|
|
|
for (const Snapshot& snapshot : snapshots)
|
|
cout << snapshot << '\n';
|
|
|
|
exit(EXIT_SUCCESS);
|
|
}
|