[PDK-771] pdk update CLI Created: 2018/01/09 Updated: 2018/02/28 Resolved: 2018/02/09
|Project:||Puppet Development Kit|
|Fix Version/s:||PDK 1.4.1|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
|Epic Link:||PDK update|
|Release Notes:||New Feature|
|Release Notes Summary:||This is a new feature that provides the 'pdk update' command. This feature is meant for PDK compatible modules to keep their modules up to date with the module template that was used to generate or convert their module.|
|QA Risk Assessment:||Needs Assessment|
For the most part, this can be a copy of the convert CLI, with "convert" changed to "update" in the output.
Mock up of help:
Very similar to the convert help but with the --template-url and --skip-intervew options removed. pdk update should only update the module to a newer version of the template used to create or convert it. Changing templates should be done with pdk convert.
A basic mock up of what it might look like to use:
Again, very similar to the convert output with only a few changes:
cc Rick Monro
|Comment by Rick Monro [ 2018/01/10 ]|
The only suggestion I have is on the line:
Wondering if this should be:
|Comment by Bryan Jen [ 2018/01/10 ]|
Currently in pdk convert, the template is cloned, fetch, and reset head to the desired ref, this will always show up in the metadata.json with a branch of master. This behavior will need to be modified to save the template-ref and written into the metadata.json for future updates.