Commit Graph

12 Commits

Author SHA1 Message Date
9762da895a feat(sdk): with _opts methods
Now all opt values enter into a _opts function instead of the original.
This avoids a lot of verbosity for both None in the case opts are
unwanted, and Some() if they actually are.

They are used like so:

```rust
client.container().from("...");
client.container_opts(Some(ContainerOpts{ ... }))
```

Some from opts will be removed in a future commit/pr
2023-02-19 18:00:04 +01:00
02006d40fc fix(sdk): without phantom data 2023-02-19 18:00:04 +01:00
94336d0637 feat(sdk): move to &str instead of String and introduce builder.
This will make the api much easier to use, as we can now rely on ""
instead of "".into() for normal string values.

Introduced builder as well, which makes it much easier to use *Opts, as
it can handle the building of that, and get the benefits from String ->
&str, as that is currently not allowed for optional values
2023-02-19 18:00:04 +01:00
19ed6c267f feat(sdk): re-export through lib.rs
this means that you can now use dagger_sdk::connect() instead of
dagger_sdk::client::connect();
2023-02-19 15:29:03 +01:00
de063eae85 feat(sdk): with return result instead of unwrap 2023-02-19 15:29:03 +01:00
6be8482b46
fix all clippy 2023-02-17 17:51:39 +01:00
0cbd1790b0
add with dockerfile 2023-02-17 17:50:45 +01:00
728840ca8e
with caching 2023-02-17 17:40:46 +01:00
59e2572173
add more quickstart 2023-02-17 17:29:23 +01:00
d894def70c
build the application 2023-02-17 15:47:12 +01:00
cb9a4dd84f
add test-the-application 2023-02-17 15:34:18 +01:00
d1726a052a
with println 2023-02-17 15:17:28 +01:00