codestrap

Codestrap is a file codestrap and boilerplate project tool. It is run from the command line and has been designed to make use of the CLIs autocomplete functionality available on supported operating systems shells.


License
Apache-2.0
Install
gem install codestrap -v 0.2.0

Documentation

CodeStrap

Build Status Dependency Status Inline docs

CodeStrap is a simple command line project code generator. It provides an easy way to create custom boilerplate for new projects and individual text files, and a very easy way to access that boilerplate.

It is written specifically for ease of use on the command line.

Quickstart

1. Download and install using the package installer

At this stage only Linux and OSX are supported.

PACKAGES

2. Clone the sample templates to your home directory

git clone http://github.com/dexterp/codestrap-samples.git $HOME/.codestrap

3. Add CodeStrap files to your path

echo 'export PATH=$HOME/.codestrap/bin:$PATH' >> $HOME/.profile
export PATH=$HOME/.codestrap/bin:$PATH

4. Scan available templates and generate commands (sym links)

# List templates
ls $HOME/.codestrap/content

# Generate links
strap -g

# List generated commands
ls $HOME/.codestrap/bin

5. Create files and projects from boilerplate

# Text file boilerplate
stubrubyscript myscript.rb
stubperlscript myscript.pl
# Project boilerplate
strappuppetmodule mypuppetmodule
straprubygem mygem

Boilerplate Setup

For template setups for both projects and individual files see ...

BOILERPLATE

Configuration File

Codestrap uses "Codestrapfile" as a configuration file. For details see.

CODESTRAPFILE