change backup tool name to 'reaper'

This commit is contained in:
rambros 2026-03-01 16:38:26 +05:30
parent 9bf4b89e00
commit fea2f8f573
4 changed files with 11 additions and 11 deletions

View file

@ -1,7 +1,7 @@
import sys import sys
import asyncio import asyncio
import logging import logging
from src.ui.exodus_app import run_exodus from src.ui.disco_reaper_app import run_disco_reaper
from src.core.configuration import load_config from src.core.configuration import load_config
def setup_logging(): def setup_logging():
@ -12,7 +12,7 @@ def setup_logging():
except Exception: except Exception:
level = logging.INFO level = logging.INFO
handlers = [logging.FileHandler('exodus.log', mode='a')] handlers = [logging.FileHandler('disco-reaper.log', mode='a')]
logging.basicConfig( logging.basicConfig(
format='%(asctime)s,%(msecs)d %(name)s %(levelname)s %(message)s', format='%(asctime)s,%(msecs)d %(name)s %(levelname)s %(message)s',
datefmt='%H:%M:%S', datefmt='%H:%M:%S',
@ -31,7 +31,7 @@ def relaunch_in_terminal():
return return
is_tty = sys.stdin.isatty() or sys.stdout.isatty() is_tty = sys.stdin.isatty() or sys.stdout.isatty()
if is_tty or os.environ.get("EXODUS_RELAUNCHED"): if is_tty or os.environ.get("DISCO_REAPER_RELAUNCHED"):
return return
terminals = [ terminals = [
@ -48,7 +48,7 @@ def relaunch_in_terminal():
args = [executable] + sys.argv[1:] args = [executable] + sys.argv[1:]
env = os.environ.copy() env = os.environ.copy()
env["EXODUS_RELAUNCHED"] = "1" env["DISCO_REAPER_RELAUNCHED"] = "1"
for term, cmd_args in terminals: for term, cmd_args in terminals:
if shutil.which(term): if shutil.which(term):
@ -62,7 +62,7 @@ async def main():
relaunch_in_terminal() relaunch_in_terminal()
setup_logging() setup_logging()
try: try:
await run_exodus() await run_disco_reaper()
except KeyboardInterrupt: except KeyboardInterrupt:
print("\nExiting...") print("\nExiting...")
except Exception as e: except Exception as e:

View file

@ -30,4 +30,4 @@ else
fi fi
# Run the application # Run the application
python3 discord-exodus.py "$@" python3 disco-reaper.py "$@"

View file

@ -11,11 +11,11 @@ from rich.progress import Progress, SpinnerColumn, TextColumn, BarColumn, TaskPr
from src.core.configuration import load_config, save_config from src.core.configuration import load_config, save_config
from src.core.base import MigrationContext from src.core.base import MigrationContext
from src.exodus.exporter import DiscordExporter from src.disco_reaper.exporter import DiscordExporter
console = Console() console = Console()
class ExodusCLI: class DiscoReaperCLI:
"""CLI app to manage Discord server data export.""" """CLI app to manage Discord server data export."""
def __init__(self, config_path="config.yaml"): def __init__(self, config_path="config.yaml"):
@ -71,7 +71,7 @@ class ExodusCLI:
while True: while True:
console.print("") console.print("")
console.print(Panel.fit("Discord Exodus - Server Exporter", style="bold green")) console.print(Panel.fit("Disco Reaper - Server Backup Tool", style="bold green"))
d_name = self.validation_results.get("discord_server_name") d_name = self.validation_results.get("discord_server_name")
d_display = f"[bold green]\"{d_name}\"[/bold green]" if d_name else "[bold red]NOT CONNECTED[/bold red]" d_display = f"[bold green]\"{d_name}\"[/bold green]" if d_name else "[bold red]NOT CONNECTED[/bold red]"
@ -239,6 +239,6 @@ class ExodusCLI:
else: else:
console.print("[yellow]No changes.[/yellow]") console.print("[yellow]No changes.[/yellow]")
async def run_exodus(config_path="config.yaml"): async def run_disco_reaper(config_path="config.yaml"):
app = ExodusCLI(config_path) app = DiscoReaperCLI(config_path)
await app.run() await app.run()