refactor: use a single method for running the ps:*all commands

This reduces the duplication at the cost of slightly more complexity.
This commit is contained in:
Jose Diaz-Gonzalez
2019-06-10 13:05:57 -04:00
parent 4a7f13c3d8
commit fc5544ac70
7 changed files with 70 additions and 143 deletions

View File

@@ -118,6 +118,13 @@ set_scale() {
done
}
ps_restore() {
declare desc="restores app"
local APP="$1"
ps_start "$APP"
}
ps_start() {
declare desc="starts app"
local APP="$1"