RECord and remAKE. A CLI tool for creating your own project templates and code snipits.
Install recake using pyinstaller
and saving it to a destination tracked by $Path
. Otherwise, use py recake.py
instead of recake(.exe)
.
# cache a source
recake add C:/source/project -n 'template'
# copy to a new destination.
recake copy 'template' C:/source/new-project
add
: Cache code files and directories for later.clip
: Add the contents of a stored file to the clipboard.copy
: Copy a cached source to a new destination.ls
: List added code sources.open
: Open a source in file explorer or the default editor.rm
: Delete an existing source.update
: cache code files and directories for later.
Feel free to tackle one of the items below, or suggest your own additions!
recake is still in early stages of development. Here are some things that could make it better:
- Templating with variable injection.
- Install-script and environment configuration for multi-platform support (currently only tested on Windows).
- Separate command like
add
to accept user input from the terminal. -
implemented aslist source/clip
command to see all cached items.ls
command. - Ability to add internet/github sources.
- recake script files to run on copy and select senarios.
-
implemented asupdate/delete source/clip
commands.update
andrm
. - Better console messages (maybe add some color?)
- Configure defaults (
ls --truncate
,open --cached
, etc.)
Recomended: use pyinstaller
to create an executable:
pip install pyinstaller
pyinstaller recake.py --distpath C:\PATH\aware\directory
- Create a batch file pointing to the executable
recake --version