docs: fix readme

This commit is contained in:
Kasper Juul Hermansen 2023-02-19 18:04:10 +01:00
parent f72731807d
commit 04e70ce964
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912

View File

@ -29,9 +29,9 @@ fn main() -> eyre::Result<()> {
let client = dagger_sdk::connect()?;
let version = client
.container(None)
.from("golang:1.19".into())
.with_exec(vec!["go".into(), "version".into()], None)
.container()
.from("golang:1.19")
.with_exec(vec!["go", "version"])
.stdout()?;
println!("Hello from Dagger and {}", version.trim());