Creates skeleton directories and files based upon skeleton files
Features:
- Basic file manipulation format
- Github repository integration
- Github gist integration
- Bitbucket repository support for both git and mercurial
- Regex find and replace within files
- Arguments from command line ($0..$x) for simple format
- Lua support, with ability to directly interface with the repository resolver.
Basic file manipulatuion format:
# Simple skeleton descriptor
#comment
# comment 2
dir_here/
mkdir dir_here2
regex package.json
$NAME
$0
mkdir dir3%20/docs
mynewfile relpath
dlfile myfile repo@user/somedir/somefile.d
rmdir byebye
somefile http://example.com
The first line is required. This is simply a way to say what format the descriptor is in.
Comments are prepended by # on its own line.
Note it is based upon no spaces. If you want spaces in arguments, use %20 escaping.
Lua format:
-- Lua skeleton descriptor
filesText = downloadRepoFile('repo@user myfile')
stdfile.write('myfile', filesText)
filesText = downloadFile('http://example.com/')
stdio.writeln("Hi there! muhaha")
for v in programArgs.args do
print("I have arg", v)
end
print("My project dir is", programArgs.projectdir)
print("My repo is", programArgs.repo)