Skip to content

Commit 18f08c8

Browse files
authored
Release 1.4.0 : add watch command (#34)
1 parent 0e336d5 commit 18f08c8

File tree

7 files changed

+194
-61
lines changed

7 files changed

+194
-61
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 1.4.0 release (2023-10-13)
2+
3+
* Add docker compose **watch** command support.
4+
* Update libraries (deps).
5+
16
## 1.3.5 release (2023-09-28)
27

38
* Update libraries (deps).

cli/Cargo.lock

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

cli/Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
[package]
22
name = "dctl"
3-
version = "1.3.5"
3+
version = "1.4.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.32.0", features = ["full"] }
9+
tokio = { version = "1.33.0", features = ["full"] }
1010
async-trait = { version = "0.1.73" }
1111
eyre = { version = "0.6.8" }
12-
clap = { version = "4.4.5", features = ["cargo"] }
13-
clap_complete = { version = "4.4.2" }
14-
toml = { version = "0.8.1" }
12+
clap = { version = "4.4.6", features = ["cargo"] }
13+
clap_complete = { version = "4.4.3" }
14+
toml = { version = "0.8.2" }
1515
dotenv = { version = "0.15.0" }
16-
serde = { version = "1.0.188", features = ["derive"] }
16+
serde = { version = "1.0.189", features = ["derive"] }
1717
serde_json = { version = "1.0.107" }
1818
shellexpand = { version = "3.1.0" }
1919
tabled = { version = "0.14.0" }

cli/src/cli.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ use crate::command::stop::compose_stop;
3131
use crate::command::top::compose_top;
3232
use crate::command::unpause::compose_unpause;
3333
use crate::command::up::compose_up;
34+
use crate::command::watch::compose_watch;
3435

3536
fn cli() -> Command {
3637
Command::new("dctl")
@@ -63,6 +64,7 @@ fn cli() -> Command {
6364
.subcommand(compose_top())
6465
.subcommand(compose_unpause())
6566
.subcommand(compose_up())
67+
.subcommand(compose_watch())
6668
.subcommand(shell_completion())
6769
.subcommand(cd_project())
6870
.subcommand(check_config())
@@ -344,6 +346,17 @@ pub async fn run(container: &dyn Container, config: &mut dyn CliConfig) -> Resul
344346
)
345347
.await?
346348
}
349+
"watch" => {
350+
container
351+
.compose(
352+
CommandType::Watch,
353+
&default_arg,
354+
&default_command_arg,
355+
args,
356+
None,
357+
)
358+
.await?
359+
}
347360
_ => return Err(eyre!("Not yet implemented")),
348361
};
349362

0 commit comments

Comments
 (0)