معرفی شرکت ها


coge-0.1.8


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

this is a description
ویژگی مقدار
سیستم عامل -
نام فایل coge-0.1.8
نام coge
نسخه کتابخانه 0.1.8
نگهدارنده []
ایمیل نگهدارنده []
نویسنده zk
ایمیل نویسنده liuzq7@gmail.com
آدرس صفحه اصلی https://github.com/zk4/coge
آدرس اینترنتی https://pypi.org/project/coge/
مجوز BSD
![image-20210312140113821](https://raw.githubusercontent.com/zk4/image_backup/main/img/image-20210312140113821.png) Simple yet powerful code generator. Make use of existing tool as possiable as we 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:** 1. template is runable as normal prj. No more %placehold% stuff. 2. instinct command with the power of fzf. 4. quick project to template and vice versa. 3. respect .gitignore. 3. support github.com repo. 5. plugin in any language only if you can run it in shell. 7. respect Old keyword case. # install ``` pip3 install coge ``` # usage ``` export COGE_TMPLS="<your_template_folder>" ``` ## 1 ``` bash coge js react oldkey:newkey :newkey0 :newkey1 @:destname ``` What coge does: - copy $COGE_TMPLS/js/react to $PWD/destname - change all names from oldkey to newkey, from COGE_ARG_0 to newkey0 ,from COGE_ARG_1 to newkey1 ## 2 ``` bash coge js react ``` What coge does: - Just copy $COGE_TMPLS/js/react to $PWD/app # work with fzf ``` cg () { eval `coge -c $@ | fzf --preview= --bind 'enter:execute-silent(pbcopy <<< {})+abort' ` && pbpaste } ``` call cg from terminal. and paste it. # timing script you can put .coge.after.sh in you template folder. It will execute after copy, which is very handy. For Safety reason. Template from network would need to use -s option to enforcing script executing, only if you know the script is safe. Supported timing and language: ``` .coge.after.sh .coge.before.sh .coge.after.py .coge.before.py ``` Ex: put .coge.after.sh in your source template ``` #!/bin/bash echo "init your git repo" git init ``` # help ``` usage: coge [-h] [-a ARG_PREFIX] [-l] [-c] [-r] [-R] [-s] [-d DEPTH] [-v] [magic ...] make template link : cd x-engine-module-template && coge -r use template : coge x-engine-module-template xxxx:camera @:x-engine-module-camera use git template from net : coge https://www.github.com/vitejs/vite \bvite\b:your_vite @:your_vite positional arguments: magic newkey:oldkey or @:folder_name optional arguments: -h, --help show this help message and exit -a ARG_PREFIX, --arg_prefix ARG_PREFIX ex: COGE_ARG_ -l, --list list folders -c, --cmd cmd -r, --link_tplt link `cwd` to $COGE_TMPLS -R, --unlink_tplt unlink `cwd` -s, --script_from_net alllow script from net -d DEPTH, --depth DEPTH list depth -v, --version version ```


نیازمندی

مقدار نام
==5.3.1 PyYAML
==0.4.4 binaryornot


زبان مورد نیاز

مقدار نام
>3.0.0 Python


نحوه نصب


نصب پکیج whl coge-0.1.8:

    pip install coge-0.1.8.whl


نصب پکیج tar.gz coge-0.1.8:

    pip install coge-0.1.8.tar.gz