Skip to content

New '--format' flag with options for env and php#3

Open
samstoller wants to merge 3 commits intosebastiaandegeus:masterfrom
samstoller:format-opt
Open

New '--format' flag with options for env and php#3
samstoller wants to merge 3 commits intosebastiaandegeus:masterfrom
samstoller:format-opt

Conversation

@samstoller
Copy link

Hi. Would you be interested in this new feature? I added a --format flag with an option to convert the salts to environment variables. It doesn't alter the default behavior at all or any of the existing commands, just adds a new option. It's really useful for WordPress frameworks and projects that load their configurations from .env files.

Thanks!

* Beautify code to WP standards; remove trailing spaces
* Standardize punctuation + casing
* Add private static function _format_data()
* Update DocBlock + @Synopsis tag
@swalkinshaw
Copy link

👍 for this feature.

Choose a reason for hiding this comment

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

This should use the FILE_APPEND flag (or at least have the option to) IMO

@aaemnnosttv
Copy link

For those who are interested, I created a package for a dotenv wp-cli command which handles salts and more!

@sebastiaandegeus
Copy link
Owner

Hi guys, I didn't notice this pull request for a long, long time. I will take a look.

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.

4 participants