Skip to content

Commit 5617554

Browse files
authored
Release 1.5.0 (#51)
Add compose port command support.
1 parent ed6d5d6 commit 5617554

File tree

8 files changed

+193
-56
lines changed

8 files changed

+193
-56
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## 1.5.0 release (2025-03-10)
4+
5+
* Add support for docker compose:
6+
* **port** command.
7+
* Update libraries (deps).
8+
* Update version of docker image used in Collection :
9+
* Grafana 11.5.2
10+
* Loki 3.4.2
11+
* Promtail 3.4.2
12+
313
## 1.4.11 release (2025-02-08)
414

515
* Update libraries (deps).

cli/Cargo.lock

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

cli/Cargo.toml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,28 @@
11
[package]
22
name = "dctl"
3-
version = "1.4.11"
3+
version = "1.5.0"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

88
[dependencies]
9-
tokio = { version = "1.43.0", features = ["full"] }
10-
async-trait = { version = "0.1.86" }
9+
tokio = { version = "1.44.0", features = ["full"] }
10+
async-trait = { version = "0.1.87" }
1111
eyre = { version = "0.6.12" }
12-
clap = { version = "4.5.28", features = ["cargo"] }
13-
clap_complete = { version = "4.5.44" }
12+
clap = { version = "4.5.31", features = ["cargo"] }
13+
clap_complete = { version = "4.5.46" }
1414
toml = { version = "0.8.20" }
1515
dotenv = { version = "0.15.0" }
16-
serde = { version = "1.0.217", features = ["derive"] }
16+
serde = { version = "1.0.218", features = ["derive"] }
1717
serde_json = { version = "1.0.138" }
1818
shellexpand = { version = "3.1.0" }
1919
tabled = { version = "0.18.0" }
2020
mockall = { version = "0.13.1" }
2121
version = { version = "3.0.0" }
22+
23+
24+
[profile.release]
25+
lto = "thin"
26+
opt-level = "z"
27+
panic = "abort"
28+
strip = "debuginfo"

cli/src/cli.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ use crate::command::kill::compose_kill;
2020
use crate::command::logs::compose_logs;
2121
use crate::command::ls::compose_ls;
2222
use crate::command::pause::compose_pause;
23+
use crate::command::port::compose_port;
2324
use crate::command::ps::compose_ps;
2425
use crate::command::pull::compose_pull;
2526
use crate::command::push::compose_push;
@@ -54,6 +55,7 @@ fn cli() -> Command {
5455
.subcommand(compose_ls())
5556
.subcommand(compose_ps())
5657
.subcommand(compose_pause())
58+
.subcommand(compose_port())
5759
.subcommand(compose_pull())
5860
.subcommand(compose_push())
5961
.subcommand(compose_restart())
@@ -225,6 +227,17 @@ pub async fn run(container: &dyn Container, config: &mut dyn CliConfig) -> Resul
225227
)
226228
.await?
227229
}
230+
"port" => {
231+
container
232+
.compose(
233+
CommandType::Port,
234+
&default_arg,
235+
&default_command_arg,
236+
args,
237+
None,
238+
)
239+
.await?
240+
}
228241
"pull" => {
229242
container
230243
.compose(

cli/src/command.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ pub mod kill;
99
pub mod logs;
1010
pub mod ls;
1111
pub mod pause;
12+
pub mod port;
1213
pub mod ps;
1314
pub mod pull;
1415
pub mod push;

0 commit comments

Comments
 (0)