feat: dagger-run support

This commit is contained in:
2023-04-30 00:09:07 +02:00
committed by Kasper Juul Hermansen
parent 7d186c477d
commit 2a29a66217
4 changed files with 35 additions and 20 deletions

View File

@@ -21,7 +21,7 @@ pub async fn connect_opts(cfg: Config) -> eyre::Result<DaggerConn> {
let (conn, proc) = DaggerEngine::new().start(&cfg).await?;
Ok(Arc::new(Query {
proc: Arc::new(proc),
proc: proc.map(|p| Arc::new(p)),
selection: query(),
graphql_client: Arc::new(DefaultGraphQLClient::new(&conn)),
}))