Improve snapshot handling and CLI workflows

This commit is contained in:
2026-11-01 16:52:17 +01:00
parent c63530da34
commit 2a1051980b
23 changed files with 944 additions and 495 deletions

View File

@@ -1,13 +1,8 @@
#ifndef STATUS_H
#define STATUS_H
/* Command return values.
0 is success and -1 a system error, with errno set. FSNAP_EPARSE says the
input itself was malformed, which is the snapshot's problem rather than the
system's: errno carries nothing useful and the command has already written a
snapshot:line: diagnostic to stderr. main maps every failure to
EXIT_FAILURE, so the distinction is internal for now. */
enum { FSNAP_EPARSE = 128 };
/* Public status 2 means the command completed with skipped entries. Parse
errors stay internal: main maps them to public failure (1). */
enum { FSNAP_WARNINGS = 2, FSNAP_EPARSE = 128 };
#endif