civicrm / cv

CiviCRM CLI Utility
26 stars 29 forks source link

Allow `+` for deep customizations on `core:install` #183

Open totten opened 10 months ago

totten commented 10 months ago

Background: In several commands (api3, api4, setting:set), there are two kinds of options:

Problem: The core:install command has a mix of control options and data model options. But the data-model options don't follow the + convention; they miss a bunch of edge-cases; and they don't allow JSON. The same is true of core:check-req and core:uninstall.

Example: Currently, you can use cv path -m X=Y, but there's no way to set a value for $setup->model['paths']['civicrm.files'].

Idea: In the same vein as SettingArgParser or Api4ArgParser, add a SetupModelParser to allow more inputs. Follow the same + conventions as the other commands.

demeritcowboy commented 10 months ago

Related, or actually probably the same thing: https://github.com/civicrm/cv/issues/72

totten commented 10 months ago

Right as usual @demeritcowboy. The first issue says, "I'm hungry"; and the second issue says, "Get a slice of pizza".

demeritcowboy commented 10 months ago

šŸ‡­šŸ‡ŗ šŸ•