Skip to content

Commit 6b5c4b5

Browse files
committed
feat: add build command
1 parent 65e7bda commit 6b5c4b5

18 files changed

Lines changed: 3026 additions & 618 deletions

Cargo.lock

Lines changed: 960 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ edition = "2021"
77

88
[dependencies]
99
anyhow = "1.0.75"
10+
eyre = "0.6"
1011
camino = "1.1.6"
1112
chrono = { version = "0.4.30", features = ["serde"] }
1213
clap = { version = "4.4.2", features = ["derive", "env"] }
@@ -16,6 +17,14 @@ difference = "2.0"
1617
dirs-next = "2.0.0"
1718
home = "0.5.5"
1819
indexmap = { version = "2.2.5", features = ["serde"] }
20+
indicatif = "0.17"
21+
bollard = { version = "0.19.1", features = ["buildkit"] }
22+
futures-util = "0.3"
23+
bytes = "1.0"
24+
tokio-util = { version = "0.7", features = ["io"] }
25+
hyper = { version = "0.14", features = ["stream"] }
26+
tar = "0.4"
27+
http-body-util = "0.1"
1928
oauth2 = "4.4.2"
2029
once_cell = "1.18.0"
2130
reqwest = { version = "0.11.20", features = ["json"] }
@@ -25,10 +34,12 @@ serde_json = { version = "1.0.114", features = ["preserve_order"] }
2534
serde_yaml = "0.9.25"
2635
tabled = "0.14.0"
2736
tempfile = "3.10.1"
37+
bytesize = "1.3"
2838
term = "0.7.0"
2939
thiserror = "1.0.48"
3040
time = { version = "0.3.36", features = ["serde", "serde-well-known"] }
3141
tiny_http = "0.12.0"
42+
tokio = { version = "1", features = ["full"] }
3243
tracing = "0.1.37"
3344
tungstenite = { git = "https://github.com/snapview/tungstenite-rs", rev = "0fa4197", features = [
3445
"native-tls",
@@ -40,3 +51,6 @@ version = "0.10"
4051
features = [
4152
"vendored"
4253
]
54+
55+
[patch.crates-io]
56+
bollard = { git = "https://github.com/molnett/bollard", branch = "mk/add_load_image" }

src/commands/auth.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ impl Login {
9696
if let Some(refresh_token) = oauthtoken.refresh_token() {
9797
token.refresh_token = Some(refresh_token.secret().to_string());
9898
}
99-
// TODO: the api returns "expiry":"2024-01-01T11:03:53.485518152+01:00"
10099
if let Some(expires_in) = oauthtoken.expires_in() {
101100
token.expiry =
102101
Some(Utc::now() + chrono::Duration::seconds(expires_in.as_secs() as i64));

0 commit comments

Comments
 (0)