Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ELHARAKA committed May 3, 2024
1 parent b17ac69 commit 218b8aa
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 12 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# RepoCleaner
# RepoCleaner (V1.0.1)

RepoCleaner was developed by Fahd El Haraka. For inquiries or further information, you can reach out through the following channels:

- **Telegram**: [@Thisiswhosthis](https://t.me/Thisiswhosthis)
- **Website**: [Web3Dev](https://web3dev.ma)

Feel free to contact for any issues, suggestions, or contributions to the project.

## Introduction

Expand Down Expand Up @@ -35,7 +42,12 @@ Once installed, you can run RepoCleaner from the command line:
```bash
repocleaner
```
- Follow the on-screen instructions to select the repositories you wish to manage or delete.

### Steps to Follow:
- **Launch the Tool**: Start RepoCleaner by typing the command above in your terminal.
- **Follow On-Screen Instructions**: The tool will guide you through selecting repositories you wish to manage or delete.
- **Backup Recommendations**: Before deleting any repositories, it is strongly recommended to back up your data. This ensures that you do not lose any important information permanently.
- **Select Options Carefully**: Choose the appropriate option based on whether you want to delete all, forked, archived, or specific repositories. Each choice has significant consequences and cannot be undone.

## Contributing

Expand Down
26 changes: 17 additions & 9 deletions repocleaner/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def display_splash():
ascii_art = pyfiglet.figlet_format("RepoCleaner")
print(ascii_art)
print("Developed by Fahd El Haraka")
print("Version: v1.0.0")
print("Version: v1.0.1")
print("Contact Information:")
print(" Email: fahd@web3dev.ma")
print(" Telegram: @thisiswhosthis")
Expand Down Expand Up @@ -90,15 +90,16 @@ def main():
}

print("Select option:\n")
print("1. Delete all forked repositories.")
print("2. Delete all archived repositories.")
print("3. Delete specific repositories.")
print("4. Exit.\n")
print("1. Delete all repositories.")
print("2. Delete all forked repositories.")
print("3. Delete all archived repositories.")
print("4. Delete specific repositories.")
print("5. Exit.\n")

while True:
choice = input()
choice = input("Enter your choice: ")

if choice == '4':
if choice == '5':
print("Exiting program.")
break

Expand All @@ -109,10 +110,17 @@ def main():

repos_to_delete = []
if choice == '1':
repos_to_delete = [repo for repo in repos if repo['fork']]
confirm = input("WARNING: You are about to delete ALL repositories. This cannot be undone. Type 'yes' to confirm: ")
if confirm.lower() == 'yes':
repos_to_delete = [repo for repo in repos]
else:
print("Deletion cancelled.")
continue
elif choice == '2':
repos_to_delete = [repo for repo in repos if repo['archived']]
repos_to_delete = [repo for repo in repos if repo['fork']]
elif choice == '3':
repos_to_delete = [repo for repo in repos if repo['archived']]
elif choice == '4':
list_repositories(repos)
repo_names = input("Enter repository names to delete, separated by commas: ")
repo_names = [name.strip() for name in repo_names.split(',')]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='repocleaner',
version='1.0.0',
version='1.0.1',
packages=find_packages(),
description='A utility to manage GitHub repositories',
long_description=open('README.md').read(),
Expand Down

0 comments on commit 218b8aa

Please sign in to comment.