feat: add main function with spinner demo

This commit is contained in:
Paul Gauthier (aider) 2024-12-05 14:45:50 -08:00
parent 8cfd64a7be
commit 6eb3641c1d

View file

@ -393,4 +393,11 @@ def printable_shell_command(cmd_list):
else:
return shlex.join(cmd_list)
def main():
spinner = Spinner("Running spinner...")
for _ in range(40): # 40 steps * 0.25 seconds = 10 seconds
time.sleep(0.25)
spinner.step()
spinner.end()
# add main() that runs a spinner for 10 seconds in 1/4 sec steps AI!