We are excited to announce version v0.2.0 of @dchighs/dc-tools-cli! This release introduces comprehensive local Dragon City client state management features (dc-client), including local asset listing with interactive pagination, client path discovery, and preference controls.
✨ What's New in v0.2.0
🖥️ 1. Local Dragon City Client Integration (dc-client)
- Get Client Data Directory (
dc-client get-dir-path): Instantly retrieve the absolute local directory path of the Dragon City client data (ClientState.dragonCityDirPath). - Game Preferences (
dc-client preferences):disable-music: Turn off background music directly in user preferences.get-user-id: Retrieve the stored game User ID.set-farm-crops --plant-id <id>: Configure crop plant IDs across all farms.
- Low-level Preferences (
dc-client user-default): Inspect and manipulate raw key-value entries inUserDefault.xml.
📂 2. Cached Assets Listing & Pagination (dc-client assets)
- Asset Listing (
dc-client assets list):- Filter assets by type (
-t, --type image audio texture mask binary). - Direct page navigation (
-p, --page <number>) and custom page limits (-l, --limit <number>). - Unpaginated view (
-a, --all). - Interactive Terminal Pagination: Navigate pages interactively (
Enter/nnext,pprev,qquit, or jump to page number).
- Filter assets by type (
- Asset Operations:
set: Substitute cached asset files.get-file-path: Retrieve absolute path for any cached asset file.delete: Remove specific cached asset files.clear: Purge all files from local cache.
🎨 3. Enhanced Terminal & Banner Presentation
- Clean monochrome CLI banner styling for improved visual contrast across light and dark terminals.
- Reusable interactive array paginator helper (
logPaginatedArray).