Skip to content

Expose the CLI version and binary name ... #231

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
Nov 25, 2022

Conversation

tucksaun
Copy link
Member

@tucksaun tucksaun commented Nov 24, 2022

… when running console, php and composer wrappers

Exposing that info via environment variables will allow a better Symfony Maker experience, see symfony/maker-bundle#1238

$ ./symfony-cli php -r "echo getenv('SYMFONY_CLI_BINARY_NAME').' '.getenv('SYMFONY_CLI_VERSION');"
symfony-cli dev
$

@tucksaun
Copy link
Member Author

waiting for @weaverryan and @jrushlow feedback before moving to ready

@OskarStark
Copy link

I would be more expressive:

- SYMFONY_CLI_BIN_NAME
+ SYMFONY_CLI_BINARY_NAME

or only SYMFONY_CLI_BINARY ?

Do you have an example of the value?

@tucksaun
Copy link
Member Author

The usual value would be symfony but if someone renames the binary to symfony-cli then it would be symfony-cli

…and `composer` wrappers

Exposing that info via environment variables will allow a better Symfony Maker experience, see symfony/maker-bundle#1238
@tucksaun tucksaun force-pushed the expose-cli-version-and-name branch from 3e87c30 to b27c38d Compare November 24, 2022 22:35
@fabpot
Copy link
Contributor

fabpot commented Nov 25, 2022

Is it still draft? Looks great to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants