treewide: move rom's parser logic to cognos

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964960ab80b5555a6cca7b20e11c8ac0ea2
This commit is contained in:
raf 2025-10-10 09:26:03 +03:00
commit 5fea07c768
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
7 changed files with 57 additions and 119 deletions

View file

@ -9,4 +9,13 @@ pub use aterm::{
parse_drv_file,
};
pub use internal_json::{Actions, Activities, Id, Verbosity};
pub use state::{BuildInfo, BuildStatus, Derivation, Host, State};
pub use state::{BuildInfo, BuildStatus, Derivation, Host, OutputName, State, ProgressState};
/// Process a list of actions and return the resulting state
pub fn process_actions(actions: Vec<Actions>) -> State {
let mut state = State { progress: ProgressState::JustStarted };
for action in actions {
state.imbibe(action);
}
state
}