This commit is contained in:
Moritz Ruth 2024-02-01 16:21:53 +01:00
parent b5a7ab3c6b
commit ebb0552a13
Signed by: moritzruth
GPG key ID: C9BBAB79405EE56D
9 changed files with 186 additions and 36 deletions

View file

@ -6,10 +6,10 @@ use either::Either;
use serde::de::DeserializeOwned;
use thiserror::Error;
use deckster_shared::handler_communication::HandlerInitializationResultMessage;
pub use deckster_shared::handler_communication::{HandlerEvent, HandlerInitializationError, InitialHandlerMessage};
pub use deckster_shared::path::*;
pub use deckster_shared::state::{KeyStyleByStateMap, KnobStyleByStateMap};
pub use deckster_shared as shared;
use deckster_shared::handler_communication::{
HandlerCommand, HandlerEvent, HandlerInitializationError, HandlerInitializationResultMessage, InitialHandlerMessage,
};
#[derive(Debug, Error)]
pub enum RunError {
@ -86,3 +86,7 @@ pub fn run<
Ok(())
}
pub fn send_command(command: HandlerCommand) {
println!("{}", serde_json::to_string(&command).unwrap());
}