-
-
Notifications
You must be signed in to change notification settings - Fork 115
/
Copy pathstatus.py
27 lines (24 loc) · 874 Bytes
/
status.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
26
27
from git_sim.git_sim_base_command import GitSimBaseCommand
from git_sim.settings import settings
class Status(GitSimBaseCommand):
def __init__(self):
super().__init__()
try:
self.selected_branches.append(self.repo.active_branch.name)
except TypeError:
pass
settings.hide_merged_branches = True
self.n = self.n_default
self.cmd += f"{type(self).__name__.lower()}"
def construct(self):
if not settings.stdout and not settings.output_only_path and not settings.quiet:
print(f"{settings.INFO_STRING} {self.cmd}")
self.show_intro()
self.parse_commits()
self.recenter_frame()
self.scale_frame()
self.vsplit_frame()
self.setup_and_draw_zones()
self.show_command_as_title()
self.fadeout()
self.show_outro()