snaptoken / leg

Tools for making step-by-step code walkthroughs
MIT License
132 stars 2 forks source link

Create a `leg init` command to initialize a new tutorial #28

Closed paigeruten closed 6 years ago

paigeruten commented 6 years ago

Try to make the process of creating a new tutorial from scratch as user-friendly as possible. leg init should initialize a leg project in the current directory, while leg init <project-name> should initialize a leg project with the given name in a new directory of the same name.

What to generate:

<project-name>/
  diff/
  template/
    page.html.erb
    step.html.erb
    style.css.erb
  leg.yml
  .gitignore
paigeruten commented 6 years ago

Moved into #29