portablectl: add --clean parameter for detaching

Calls CleanUnit on each portable service being removed, after it has
stopped
This commit is contained in:
Luca Boccassi
2024-04-18 10:47:29 +01:00
parent 4d3d187493
commit 966d7977c7
4 changed files with 75 additions and 8 deletions
+2 -1
View File
@@ -36,7 +36,8 @@ _portablectl() {
local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
local -A OPTS=(
[STANDALONE]='-q --quiet --runtime --no-reload --cat --no-pager --no-legend
--no-ask-password --enable --now -h --help --version'
--no-ask-password --enable --now -h --help --version
--clean'
[ARG]='-p --profile --copy -H --host -M --machine --extension'
)