Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

chalasr
Copy link
Member

@chalasr chalasr commented May 5, 2025

Q A
Branch? 7.3
Bug fix? no
New feature? yes
Deprecations? no
Issues -
License MIT

As it is standard for console options/arguments to be named using kebab-case, I propose to map the invoke parameter names using their kebab-case form in the input definition when they are initially camelCased or snake_cased.

@chalasr chalasr added the Feature label May 5, 2025
@carsonbot carsonbot changed the title [Console] Use kebab-case for auto-guessed input arguments/options names Use kebab-case for auto-guessed input arguments/options names May 5, 2025
@carsonbot carsonbot added this to the 7.3 milestone May 5, 2025
@carsonbot carsonbot changed the title Use kebab-case for auto-guessed input arguments/options names [Console] Use kebab-case for auto-guessed input arguments/options names May 5, 2025
@chalasr chalasr requested review from yceruto, kbond and wouterj May 5, 2025 00:15
@chalasr chalasr added the ❄️ Feature Freeze Important Pull Requests to finish before the next Symfony "feature freeze" label May 5, 2025
Copy link
Member

@kbond kbond left a comment

Choose a reason for hiding this comment

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

Good call!

Copy link
Member

@yceruto yceruto left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Member

@xabbuh xabbuh left a comment

Choose a reason for hiding this comment

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

in fact we need to bump the dependency for symfony/string to ^7.2 (see the low deps failure)

@chalasr chalasr force-pushed the console-kebab-args branch from 031af5a to 84c0e5b Compare May 5, 2025 08:24
@chalasr
Copy link
Member Author

chalasr commented May 5, 2025

Fixed, thanks!

@wouterj
Copy link
Member

wouterj commented May 5, 2025

Nice find, thanks Robin!

@wouterj wouterj merged commit 76ab38f into symfony:7.3 May 5, 2025
10 of 11 checks passed
@chalasr chalasr deleted the console-kebab-args branch May 5, 2025 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Console Feature ❄️ Feature Freeze Important Pull Requests to finish before the next Symfony "feature freeze" Status: Reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants