this is a description
Project description
coge
Simple yet powerful code generator. Make use of your shell as possiable as coge can.
Compare to hygen, yo.
- yo is way too slow and complicated.
- hygen pollutes all template files, and only support ejs.
What I only need:
- template is runable as normal prj. No more $placehold$ stuff.
- instinct command follows the folder path.
- quick project to template and vice versa.
- respect .gitignore.
- auto complete in command line.
- prompt available.
install
make install
usage
export CG_TMPLS="<your_template_folder>"
1
coge js react oldkey:newkey :newkey0 :newkey1 @:destname
What coge does:
- copy $CG_TMPLS/js/react to $PWD/destname
- change all names from oldkey to newkey, from CG_ARG__0 to newkey0 ,from CG_ARG__1 to newkey1
2
coge js react
What coge does:
- Just copy $CG_TMPLS/js/react to $PWD/app
help
usage: coge [-h] [-a ARG_PREFIX] [-l] [-r] [-w] [-d DEPTH] [o [o ...]]
positional arguments:
o folder or newkey:oldkey (default: None)
optional arguments:
-h, --help show this help message and exit
-a ARG_PREFIX, --arg_prefix ARG_PREFIX
ex: CG_ARG__ (default: CG_ARG__)
-l, --list list folders (default: False)
-r, --link_tplt link cwd template to CG_TMPLS (default: False)
-w, --allow_git_dirty
by default, your CG_TMPLS must git clean, because coge
relies on git command if you are in a git repo
(default: False)
-d DEPTH, --depth DEPTH
list depth (default: 3)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file coge-0.0.6-py2.py3-none-any.whl
.
File metadata
- Download URL: coge-0.0.6-py2.py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.4.2 requests/2.23.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 111ae79bd5483b16bee3fa45eacdde75d63c8220dd074330e4fe40f6b60e317d |
|
MD5 | 7727cdac47c6072cd95506a5b9a42be0 |
|
BLAKE2b-256 | 31eabf92e6aefa18a8492a737bdc067e399e444dbd0873f7168baec49cd5eead |