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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user