-
Notifications
You must be signed in to change notification settings - Fork 13
Introduce the project:convert
command
#267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… flags as the rest of the CLI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a new project:convert
command to convert configuration files from other providers to Upsun format. Currently supports converting Platform.sh configurations to Upsun format.
- Adds the
project:convert
command with Platform.sh to Upsun conversion capability - Integrates the command into the CLI framework with proper help documentation and examples
- Adds dependency on
github.com/upsun/lib-sun
library for conversion logic
Reviewed Changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
go.mod | Adds lib-sun dependency for conversion functionality |
commands/root.go | Adds yes flag and conditionally registers convert command for Upsun flavor |
commands/list.go | Adds convert command to the list output for Upsun configurations |
commands/convert_config.go | Implements the complete convert command with Platform.sh to Upsun conversion logic |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
The
project:convert
command is meant to be used for converting other types of configuration to Upsun, currently supporting only theplatformsh
provider.