Interpret the nix logs.

This commit is contained in:
Tom Alexander
2026-02-17 22:49:42 -05:00
parent d65c54d997
commit f797a19175
12 changed files with 756 additions and 25 deletions

View File

@@ -20,6 +20,9 @@ pub(crate) enum Commands {
/// Launch a daemon to run builds.
Daemon(DaemonArgs),
/// Feed nix logs into the parser for development.
FeedLog(FeedLogArgs),
}
#[derive(Args, Debug)]
@@ -40,6 +43,13 @@ pub(crate) struct DaemonArgs {
pub(crate) path: PathBuf,
}
#[derive(Args, Debug)]
pub(crate) struct FeedLogArgs {
/// Path to the log file.
#[arg(short, long)]
pub(crate) input: PathBuf,
}
#[cfg(test)]
mod tests {
use super::*;