How do I write those cool command line code generators (rails, sproutcore, webgen)

StackOverflow https://stackoverflow.com/questions/10595

  •  08-06-2019
  •  | 
  •  

Question

I've grokked the code for all the aforementioned apps and I still can't find a straightforward way to create a static directory structure from a single command.

Was it helpful?

Solution

Check out rubigen. You can also view a presentation by dr nic.

OTHER TIPS

So what you want is to able to issue a command that will generate an entire directory tree?

cp -r <template> <destination>

Or am I misunderstanding? If you want to generate a consistent directory structure, your best bet is to simply copy it from a template. Fast, easy, done.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top