Conversation
Co-authored-by: kolanski <632928+kolanski@users.noreply.github.com>
Co-authored-by: kolanski <632928+kolanski@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add direct CLI add/list commands for FDML entities leveraging the migration system
Add direct CLI commands for FDML operations using migration engine
Sep 2, 2025
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.
This PR implements the missing roadmap commands
fdml addandfdml listto provide a user-friendly interface for creating and listing FDML elements without requiring hand-written migration files.Overview
The implementation adds comprehensive CLI commands that internally leverage the existing migration engine to ensure data integrity and maintain an audit trail of all changes. Users can now easily add features, entities, actions, constraints, and fields through intuitive commands while benefiting from the robustness of the migration system.
New Commands Added
Add Commands (with migration engine integration)
List Commands (with rich output)
# Explore existing FDML specifications with detailed information fdml list features [file] [--output json] fdml list entities [file] [--output json] fdml list actions [file] [--output json] fdml list constraints [file] [--output json]Key Features
--dry-runflagExample Usage
Technical Implementation
New Migration Operations
Extended the migration engine with three new operations:
AddEntity- Creates entities with optional name and descriptionAddAction- Creates actions with input/output specificationsAddConstraint- Creates constraints with type and target validationArchitecture Benefits
Testing
Added comprehensive test coverage including:
Impact
This implementation significantly improves the FDML developer experience by:
The CLI now provides a complete interface for both exploring existing FDML specifications and safely adding new elements, making FDML more accessible while maintaining its powerful migration-based foundation.
This pull request was created as a result of the following prompt from Copilot chat.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.