MCPcopy Index your code
hub / github.com/lzhoang2801/OpCore-Simplify / progress_bar

Method progress_bar

Scripts/utils.py:172–186  ·  view source on GitHub ↗
(self, title, steps, current_step_index, done=False)

Source from the content-addressed store, hash-verified

170 return user_response
171
172 def progress_bar(self, title, steps, current_step_index, done=False):
173 self.head(title)
174 print("")
175 if done:
176 for step in steps:
177 print(" [\033[92m✓\033[0m] {}".format(step))
178 else:
179 for i, step in enumerate(steps):
180 if i < current_step_index:
181 print(" [\033[92m✓\033[0m] {}".format(step))
182 elif i == current_step_index:
183 print(" [\033[1;93m>\033[0m] {}...".format(step))
184 else:
185 print(" [ ] {}".format(step))
186 print("")
187
188 def head(self, text = None, width = 68, resize=True):
189 if resize:

Callers 1

build_opencore_efiMethod · 0.80

Calls 1

headMethod · 0.95

Tested by

no test coverage detected