Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds comprehensive Directus Docker setup and management commands to the CLI, enabling developers to quickly create, manage, and interact with local Directus instances.
Changes:
- Added Docker-based Directus instance creation with auto-port detection and multiple database options
- Implemented instance removal command with safety confirmations
- Added TypeScript type generation from Directus collections
- Included comprehensive documentation and test coverage
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/templates/directus/docker-compose.yml.ejs | Docker Compose template supporting PostgreSQL, MySQL, and SQLite databases |
| src/templates/directus/README.md.ejs | User documentation template with setup, management, and troubleshooting guides |
| src/templates/directus/.env.ejs | Environment configuration template for Directus instances |
| src/interfaces/lt-config.interface.ts | TypeScript interface definitions for Directus command configurations |
| src/commands/directus/typegen.ts | Command to generate TypeScript types from Directus collections |
| src/commands/directus/remove.ts | Command to remove Directus instances with container and volume cleanup |
| src/commands/directus/docker-setup.ts | Main command for creating and updating Directus Docker instances |
| src/commands/directus/directus.ts | Parent command menu for Directus operations |
| src/commands/config/validate.ts | Validation logic for Directus configuration options |
| schemas/lt.config.schema.json | JSON schema for Directus configuration validation |
| docs/commands.md | Complete documentation for all Directus commands |
| tests/directus-commands.test.ts | Test suite validating command behavior and error handling |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.