Files
NoN-Site/nonpacks/library/management/commands/refresh_vanilla_index.py
T
2026-08-04 19:05:38 -05:00

12 lines
394 B
Python

from django.core.management.base import BaseCommand
from library.vanilla_textures import refresh_vanilla_index
class Command(BaseCommand):
help = 'Rebuild the vanilla entity-texture index (static/vanilla/entity_index.json).'
def handle(self, *args, **options):
index = refresh_vanilla_index()
self.stdout.write(self.style.SUCCESS(f'Indexed {len(index)} entities.'))