-
Notifications
You must be signed in to change notification settings - Fork 0
/
status_manager.py
25 lines (24 loc) · 1.09 KB
/
status_manager.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from sublime import View, status_message
class StatusbarManager:
@staticmethod
def show_status(view: View, step: str):
if step == "canceled":
view.set_status("swift_build_status", "")
status_message("Build canceled.")
elif step == "failed":
view.set_status("swift_build_status", "")
status_message("Build failed.")
elif step == "":
view.set_status("swift_build_status", "Building...")
elif step == "built":
view.set_status("swift_build_status", "Obtaining Product Path...")
elif step == "obtained_product_path":
view.set_status("swift_build_status", "Obraining Devices...")
elif step == "obrained_devices":
view.set_status("swift_build_status", "Picking Devices...")
elif step == "device_picked":
view.set_status("swift_build_status", "App Installation...")
elif step == "installed":
view.set_status("swift_build_status", "App Spawning...")
elif step == "spawned":
view.set_status("swift_build_status", "")