Closed namit-chandwani closed 3 years ago
This PR is now ready for review :)
CC: @wtrocki
ETA 1 day. Weekend
I do not think all uses of cli name were properly replaced :)
good stuff but left some suggestions
Sorry, missed the notification somehow. Will make the required changes tomorrow :)
Merging this PR now and making a new Charmil release for both charmil/starter
module and charmil-starter
repo to use.
Closes #239
Description
The
init
command of Charmil CLI uses the template files and their placeholders that are currently present in thecharmil-starter
repo to generate a starter project, which makes thecharmil-starter
repo unusable without the init command (ie. users cannot clone the repo and use it directly due to the presence of template files).Our aim is to provide an additional option for users to use Charmil Starter by allowing them to directly clone the charmil-starter Github repository.
This can be achieved by following these 2 steps:
Change the init command implementation to replace default values with the user-specified ones (ie. Github org/user name, repo name and CLI name) by performing simple String replacements instead of using go templates and substituting its placeholders. [Handled by this PR]
Remove the current contents of the charmil-starter repo (as it contains template files instead of runnable code) and replace it with the contents of the starter present in this repo (charmil/starter). [Handled by the PR: aerogear/charmil-starter/pull/7]
Type of change
Checklist