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

Add an init command #25

Open
MrTango opened this issue Jun 7, 2018 · 0 comments
Open

Add an init command #25

MrTango opened this issue Jun 7, 2018 · 0 comments

Comments

@MrTango
Copy link
Contributor

MrTango commented Jun 7, 2018

To allow people to use plonecli command like build and serve in existing packages, we could provide an init command which will prepare a directory for plonecli.

What it needs is documented here:
https://bobtemplatesplone.readthedocs.io/en/latest/upgrade-packages.html#bobtemplate-cfg

We basically need a bobtemplate.cfg in the root directory of a package or buildout.
We should ask for a bobtemplate name like addon and write it to the bobtemplate.cfg.
The template name should be a list of existing templates, comming from the plonecli registry.
It has to be the global name, 'plone_addon' not just 'addon'.
Because the configuration is for mrbob and not only for bobtemplates.pone.

The command can be used then like:

plonecli init mybuildout

or just without a directory, for the current directory

plonecli init

also we need to update configure.zcml files to have the placeholder lines, where we inject config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant