Interpret the nix logs.
This commit is contained in:
@@ -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::*;
|
||||
|
||||
Reference in New Issue
Block a user