diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-08-12 18:03:54 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-08-12 18:03:54 +0900 |
| commit | 1bc16b51a68642e1ff2681f71a34e0694468b768 (patch) | |
| tree | 2ab7775a420d02ae55cfd5b4e202ddfbeef4d331 /cmd/dist | |
| parent | 3718c044c41eac4f3aa1af88cf0bb50797b4fcfa (diff) | |
cmd/hakurei: terminate specified instance
This is theoretically susceptible to the PID race, but such an event is statistically impossible, and not exploitable in the intended use case, regardless.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/dist')
| -rw-r--r-- | cmd/dist/comp/_hakurei | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/dist/comp/_hakurei b/cmd/dist/comp/_hakurei index 11424612..6580878c 100644 --- a/cmd/dist/comp/_hakurei +++ b/cmd/dist/comp/_hakurei @@ -36,6 +36,11 @@ _hakurei_show() { 'files:files:__hakurei_files' } +_hakurei_kill() { + _alternative \ + 'instances:domains:__hakurei_instances' +} + __hakurei_files() { _files -g "*.(json|hakurei)" return $? @@ -60,6 +65,7 @@ __hakurei_instances() { "run:Load and start container from configuration file" "exec:Configure and start a permissive container" "show:Show live or local instance configuration" + "kill:Terminate an active instance" "ps:List active instances" "version:Display version information" "license:Show full license text" |
