Tool that allows you to store commonly used files and spawn them on demand in desired location (think sample configs, new projects etc.). Currently tested only on OSX.
Download binary or compile from source.
Place in /usr/local/bin.
You are set to go.
``` bts 0.1.0 Automatic template file generator.
USAGE:
bts [config-location]
FLAGS: -h, --help Prints help information -V, --version Prints version information
ARGS:
SUBCOMMANDS: help Prints this message or the help of the given subcommand(s) new register ```
bts newbts new template_name
bts new template_name tests/acceptance/new_test
new command allows to specify --max-depth parameter when templates are folders with deep files tree.
--with-parent flag controls if you want to keep folder structure of template when copying files; think - it will add template_name/file.txt instead of file.txt
Templates can be stored in sub folders, eg:
bts new cargo/web_app .
bts registerbts register template_name .
or
bts register template_name file.txt
to create template from given file.
This command removes anything that existed previously as template_name
bts register template_name . -a
register command allows to specify --max-depth same as new.