Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Console] Use kebab-case for auto-guessed input arguments/options names #60344

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

Merged
merged 1 commit into from
May 5, 2025

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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.