Hi everyone,
I'm using the elgg-cli seeder to generate data, and I'm wondering:
Is it possible to add custom parameters when running a seeder via elgg-cli?
For example, something like:
vendor/bin/elgg-cli databse:seed -t customSeeder --limit=100 --my-custom-param=value
I'd like to pass additional context or configuration to my custom seeder class.
If this is supported, how can I retrieve the custom parameter inside the seeder logic?
If not, is there a recommended way to extend the CLI to support this?
Thanks in advance!
Regards,
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Jerome Bakker@jeabakker

Jerome Bakker - 1 like
- Hermand Pessek@rheman

Hermand Pessek - 0 likes
You must log in to post replies.It's not possible to add custom params from you seeder class (as that isn't the cli command).
You could extend/overrule the core seeder command to support your additional params. Those would then also be available to all other seeders, but since they don't use it no harm.
Thanks