photonic-interface-cli 0.1.1

Dynamic light controller and animator
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::sync::Arc;

use tokio::io::{stdin, stdout};

use photonic::interface::{Interface, Introspection};

pub struct CLI;

impl Interface for CLI {
    async fn listen(self, introspection: Arc<Introspection>) -> anyhow::Result<()> {
        let i = stdin();
        let o = stdout();

        return super::run(i, o, introspection).await;
    }
}