1
0
Fork 0

Add docker to test

This commit is contained in:
Florian RICHER 2023-01-31 14:36:59 +01:00
parent 535abde7c0
commit 115855ac75
No known key found for this signature in database
GPG key ID: 6BF27BF8A1E71623
5 changed files with 43 additions and 6 deletions

View file

@ -8,10 +8,9 @@ use tonic::Response;
#[cfg(unix)]
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
// let arg = std::env::args()
// .skip(1)
// .next().unwrap();
let arg = String::from("{\"command\": \"/usr/bin/nu\", \"envs\": {}, \"args\": []}");
let arg = std::env::args()
.skip(1)
.last().unwrap();
let mut command : std::process::Command = serde_json::from_str::<libcommand::Command>(&arg)
.unwrap()
.into();