Skip to content

Conversation

akalipetis
Copy link
Member

@akalipetis akalipetis commented Sep 18, 2025

The project:convert command is meant to be used for converting other types of configuration to Upsun, currently supporting only the platformsh provider.

Command: project:convert
Description: Generate an Upsun compatible configuration based on the configuration from another provider.

Usage:
 upsun project:convert

Options:
  -h, --help           Display this help message
  -v|vv|vvv, --verbose Increase the verbosity of messages
  -V, --version        Display this application version
  -y, --yes            Answer "yes" to confirmation questions; accept the default value for other questions; disable interaction
      --no-interaction Do not ask any interactive questions; accept default values. Equivalent to using the environment variable: UPSUN_CLI_NO_INTERACTION=1
  -p, --provider       The provider from which to convert the configuration. Currently, only 'platformsh' is supported.

Examples:
 Convert the Platform.sh project configuration files in your current directory:
   upsun project:convert --provider=platformsh

@akalipetis akalipetis changed the title Introduce the §§ Introduce the project:convert command Sep 18, 2025
@akalipetis akalipetis marked this pull request as ready for review September 18, 2025 07:28
@Copilot Copilot AI review requested due to automatic review settings September 18, 2025 07:28
Copy link

@Copilot Copilot AI left a 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.

@pjcdawkins pjcdawkins merged commit 363a6bd into main Sep 19, 2025
1 check passed
@pjcdawkins pjcdawkins deleted the add_convsun branch September 19, 2025 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants