topheman / snake-pipe-rust

🦀 A snake game based on stdin/stdout (+tcp and unix sockets) in rust
MIT License
12 stars 1 forks source link

Add a metadatas field in `InitOptions` #17

Closed topheman closed 8 months ago

topheman commented 8 months ago

This should be a HashMap.

That will let any middleware to add informations that could be used down the way by the processes piped on the stream.

We already have a version field that does such a thing - see #5 .

Example of usage:

snakepipe gamestate|snakepipe render-browser|snakepipe render

We want snakepipe render-http to pass the url:port to snakepipe render so that it will display it on the terminal.