Skip to content

Commit 737228d

Browse files
authored
0.2.21 (#75)
* Add "no such container" hook to event hooks in Job template * 0.2.21 --------- Co-authored-by: Ľubomír Kurčák <[email protected]>
1 parent f285502 commit 737228d

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tend"
3-
version = "0.2.20"
3+
version = "0.2.21"
44
authors = ["Ľubomír Kurčák <[email protected]>"]
55
description = "Command-line tool for managing and running multiple processes"
66
edition = "2024"
@@ -21,7 +21,7 @@ exclude = [
2121

2222
[dependencies]
2323
anyhow = "1.0.100"
24-
clap = { version = "4.5.51", features = ["derive"] }
24+
clap = { version = "4.5.53", features = ["derive"] }
2525
colored = "3.0.0"
2626
dirs-next = "2.0.0"
2727
folktime = "0.2.1"

src/job/template.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,15 @@ impl Job {
6161
},
6262
action: Action::FastRestart,
6363
});
64+
65+
self.event_hooks.push(Hook {
66+
name: "no such container hook".to_string(),
67+
event: Event::DetectSubstring {
68+
contains: "No such container:".to_string(),
69+
stream: Stream::Any,
70+
},
71+
action: Action::Restart,
72+
});
6473
}
6574
}
6675
}

0 commit comments

Comments
 (0)