Skip to content

Commit

Permalink
add no stop script
Browse files Browse the repository at this point in the history
  • Loading branch information
Lovi-0 committed Mar 20, 2024
1 parent f1ed9cf commit 5e119df
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# Import
import sys

def initialize() -> None:
def initialize():
"""
Initializes the application by performing necessary setup tasks.
"""
Expand All @@ -38,7 +38,7 @@ def initialize() -> None:
print("\n")


def main() -> None:
def main():
"""
Main function to execute the application logic.
"""
Expand Down Expand Up @@ -114,4 +114,11 @@ def main() -> None:
console.print("[red]Done!")

if __name__ == '__main__':
main()

while 1:
cmd_insert = input("Quit the script [yes/no]: ")

if cmd_insert == "y" or cmd_insert == "yes":
main()
else:
break

0 comments on commit 5e119df

Please sign in to comment.