Skip to content

Conversation

@mwaiyee
Copy link
Collaborator

@mwaiyee mwaiyee commented Jan 23, 2026

  • fix passing of custom docker files

Merge Checklist

Please cross check this list if additions / modifications needs to be done on top of your core changes and tick them off. Reviewer can as well glance through and help the developer if something is missed out.

  • Automated Tests (Jasmine integration tests, Unit tests, and/or Performance tests)
  • Updated Manual tests / Demo Config
  • Documentation (Application guide, Admin guide, Markdown, Readme and/or Wiki)
  • Verified that local development environment is working with latest changes (integrated with latest develop branch)
  • following best practices in code review doc

Copy link
Contributor

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 aims to fix the passing of custom docker compose files by updating the CLI option definition for the compose file parameter.

Changes:

  • Updated the -c option from --compose-file to --composeFile <path> and added the missing <path> parameter specification

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

.option("--hades", "")
.option(
"-c, --compose-file",
"-c, --composeFile <path>",
Copy link

Copilot AI Jan 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CLI option naming is now inconsistent with other options in the same file. All other multi-word options use kebab-case (e.g., --function-path, --docker-context, --env-file), while this change introduces camelCase (--composeFile). Commander.js automatically converts kebab-case to camelCase when creating the options object, so --compose-file would still be accessible as options.composeFile. The fix should keep --compose-file for consistency with other options while only adding the missing <path> parameter specification.

Copilot uses AI. Check for mistakes.
.option("--hades", "")
.option(
"-c, --compose-file",
"-c, --composeFile <path>",
Copy link

Copilot AI Jan 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change introduces a breaking change to the CLI interface. Users who were previously using -c or --compose-file will need to update to --composeFile. While the internal code already expects composeFile, Commander.js automatically converts kebab-case option names to camelCase in the options object, so the original --compose-file would have worked correctly with options.composeFile. Consider the impact on existing users and scripts that may be using this CLI option.

Suggested change
"-c, --composeFile <path>",
"-c, --compose-file <path>",

Copilot uses AI. Check for mistakes.
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