Rework step options handling
This commit is contained in:
@@ -59,7 +59,8 @@ step_1() {
|
||||
fi
|
||||
}
|
||||
|
||||
step_3_info() { echoinfoArgs "[status|start|stop|restart]"; echo "Manage ${toolName} services"; }
|
||||
step_3_info() { echo "Manage ${toolName} services"; }
|
||||
step_3_options() { echo "[status|start|stop|restart]"; }
|
||||
step_3_alias() { echo "service"; }
|
||||
step_3() {
|
||||
shift
|
||||
@@ -200,12 +201,12 @@ step_18() {
|
||||
}
|
||||
|
||||
step_20_info() {
|
||||
echoinfoArgs "[reindex|optimize]"
|
||||
echo "Manage document search index"
|
||||
echoinfo " reindex - (default) create index from scratch"
|
||||
echoinfo " optimize - updates index to increase search speed and"
|
||||
echoinfo " ensures autocompletion"
|
||||
}
|
||||
step_20_options() { echo "[reindex|optimize]"; }
|
||||
step_20_alias() { echo "reindex"; }
|
||||
step_20() {
|
||||
shift
|
||||
@@ -236,7 +237,8 @@ step_22() {
|
||||
exe sudo -Hu paperless python3 manage.py document_renamer
|
||||
}
|
||||
|
||||
step_30_info() { echoinfoArgs "[--nostart]"; echo "Backup ${toolName}"; }
|
||||
step_30_info() { echo "Backup ${toolName}"; }
|
||||
step_30_options() { echo "[--nostart]"; }
|
||||
step_30_alias() { echo "backup"; }
|
||||
step_30() {
|
||||
shift
|
||||
|
Reference in New Issue
Block a user