Skip to content
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

Allow passing through additional options after the enable command #294

Merged
merged 10 commits into from
Jul 12, 2022

Conversation

mattstauffer
Copy link
Member

@mattstauffer mattstauffer commented Jul 3, 2022

E.g.

takeout enable meilisearch -- --meilisearch-specific-flag-here --other-flag=great -e 'SOMETHING'

Closes #218

@mattstauffer
Copy link
Member Author

OK, it's incomplete in part because I only am processing pass through flags that start with two dashes, so i need to write a test and fix it to also work for this:

takeout enable meilisearch -- -e MEILI_MASTER_KEY='MY_KEY_HERE'

@mattstauffer
Copy link
Member Author

Fixed that.

@mattstauffer
Copy link
Member Author

The failing tests are a PHP version issue that we're handling elsewhere.

@@ -40,7 +40,7 @@
|
*/

'env' => 'development',
'env' => env('APP_ENV', 'development'),
Copy link
Member Author

Choose a reason for hiding this comment

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

This and the change in phpunit.xml.dist are so that we can check App::environment()/ App::runningUnitTests / config('app.env') in testing.

See: laravel-zero/laravel-zero#420

@mattstauffer mattstauffer marked this pull request as ready for review July 12, 2022 19:24
@mattstauffer mattstauffer merged commit 191c6a0 into main Jul 12, 2022
@mattstauffer mattstauffer deleted the mes/pass-params-along branch July 12, 2022 19:51
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.

Pass custom docker run parameters when enabling a service
1 participant