onepub-dev / onepub-dev/dcli

Implement templating system

Open
#4 2 comments 0 reactions 1 assignee View on GitHub

@bsutton is already working on this.

Since Dec 1, 2019.

enhancement help wanted
Dominant language
Dart
Stars
265
Forks
30
PR merge metrics
No merged PRs in 30d

Description

I'm interested in creating a template system. When you create a project you can start with an existing library of your own or we will generate one for you. It might be useful to have a small library of starter templates that demonstrate common techniques when using dshell.

dshell create from <template>

Templates would live in ~/.dshell/templates

Then give the user the ability to list, add and delete templates of their own.

We should have two subdirectories under templates:

  • builtin
  • user
    This will allow us to upgrade the builtin templates without risk of interfering with the user templates.

Should we allow a user to create a template with the same name as a builtin template?

We should could allow a user to create a template with the same name as a built in template as a way to 'override' the standard templates.

If this is the case then we should warn the user before creating the user template.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.