pinix 0.3.2

Progress In Nix - Pacman inspired frontend for Nix
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::action::Action;
use crate::state::{HandlerResult, State};

pub fn handle_new_message(state: &mut State, action: &Action) -> anyhow::Result<HandlerResult> {
    if let Action::Msg { msg, .. } = action {
        state.println(msg)?;
    }

    Ok(HandlerResult::Continue)
}