mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 08:14:59 +00:00
feat: add main function with spinner demo
This commit is contained in:
parent
8cfd64a7be
commit
6eb3641c1d
1 changed files with 7 additions and 0 deletions
|
@ -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!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue