photonic_interface_cli/stdio.rs
1use std::sync::Arc;
2
3use tokio::io::{stdin, stdout};
4
5use photonic::interface::{Interface, Introspection};
6
7pub struct CLI;
8
9impl Interface for CLI {
10 async fn listen(self, introspection: Arc<Introspection>) -> anyhow::Result<()> {
11 let i = stdin();
12 let o = stdout();
13
14 return super::run(i, o, introspection).await;
15 }
16}