Actions
Task #4926
closedStory #4082: As a plugin writer I can use plugin_template to bootstrap or update a plugin
switch template entirely to jinja
Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:
100%
Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Plugin Template
Sprint:
Sprint 54
Quarter:
Description
This task does not affect generate_travis_config.
1. Create a new CLI with 1 command `bootstrap`.
2. Modify all string formatting templates to jinja
The bootstrap command will only need to accept 1 argument "name". Implement this as a positional arg, but it will be replaced in a later story by yaml config.
Actions
Use jinja2 to template all files
Primary change: use jinja templates rather than string substitution.
Secondary change: rework the mechanisms of the plugin template to allow templating each of files in the selected section.
https://pulp.plan.io/issues/4926 fixes #4926