Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Fetching templates #40

Closed
ebuchman opened this issue May 20, 2020 · 3 comments
Closed

Fetching templates #40

ebuchman opened this issue May 20, 2020 · 3 comments

Comments

@ebuchman
Copy link
Member

ebuchman commented May 20, 2020

It should be possible to specify a template URL on new to fetch the template from the web. This will facilitate using a common set of templates stored in a canonical location, rather than having to copy them around.

We should also probably create an index of templates in a local profile so we can refer to them by name, ie. --template-id employee could look up employee in a local config file to find the URL where to pull from.

Wasn't clear if/how this relates to #6

@shonfeder
Copy link
Contributor

shonfeder commented May 20, 2020

This is closely related to the review command suggested in #8. #8 probably needs to be factored out, perhaps merging with this, or splitting review into a higher level command that's based on this functionality.

@thanethomson thanethomson added this to the Prototype v2 milestone May 29, 2020
@ebuchman
Copy link
Member Author

As a first order approach to simplify this we can assume the template dir already exists locally and its location can be kept in some global config file.

Then we don't even need to fetch from the internet we can just copy it out of the local repo.

If fetching from the internet is simple enough than no biggie, just trying to find acceptable ways to simplify up front ...

@thanethomson
Copy link
Member

Now implemented in v0.2, as described in #60 (currently on branch prototype/v2, soon to be merged to master).

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

No branches or pull requests

3 participants