MCPcopy
hub / github.com/corpnewt/gibMacOS / custom_quit

Method custom_quit

Scripts/utils.py:263–280  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

261 print('\033[8;{};{}t'.format(height, width))
262
263 def custom_quit(self):
264 self.head()
265 print("by CorpNewt\n")
266 print("Thanks for testing it out, for bugs/comments/complaints")
267 print("send me a message on Reddit, or check out my GitHub:\n")
268 print("www.reddit.com/u/corpnewt")
269 print("www.github.com/corpnewt\n")
270 # Get the time and wish them a good morning, afternoon, evening, and night
271 hr = datetime.datetime.now().time().hour
272 if hr > 3 and hr < 12:
273 print("Have a nice morning!\n\n")
274 elif hr >= 12 and hr < 17:
275 print("Have a nice afternoon!\n\n")
276 elif hr >= 17 and hr < 21:
277 print("Have a nice evening!\n\n")
278 else:
279 print("Have a nice night!\n\n")
280 exit(0)

Callers 7

select_packageMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
download_prodMethod · 0.80
pick_catalogMethod · 0.80
pick_macosMethod · 0.80
mainMethod · 0.80

Calls 1

headMethod · 0.95

Tested by

no test coverage detected