4teamwork / ftw.globalstatusmessage

3 stars 3 forks source link

Minimal command line API #22

Open phgross opened 8 years ago

phgross commented 8 years ago

It would be nice to set/create a message over the command line.

joka commented 8 years ago

I suggest we call the script globalstatusmessage and start with the minimal options: type title and message.
The remaining question is how the scripts finds the zope instance. We can do it similar to ftw.upgrade.command, just looking for parts/*/etc/zope.conf. This implies the script is run inside a buildout installation.

lukasgraf commented 8 years ago

@joka I'd argue type could default to info.

So I probably wouldn't make it a required parameter.

lukasgraf commented 8 years ago

And the Plone site will be an additional argument that's required. I'd suggest -s / --site.

joka commented 8 years ago

So I probably wouldn't make it a required parameter.

ok