Skip to main content

this is a description

Project description

cg

Simple yet powerful code generator. Make use of your shell as possiable as cg can.

Pity, the name cg is taken by others. use xcp in cmdline.

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 follows the folder path.
  3. respect .gitignore.
  4. quick project to template and vice versa.
  5. prompt available.

API design

which one you prefer?

# no slash
cg js react oldkey:newkey :newkey2 @:destname 

# with slash
cg js/react oldkey:newkey :newkey2 @:destname 

Scenario

1

cg js react oldkey:newkey :newkey0 :newkey1 @:destname 
  • 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

cg js react
  • Just copy $CG_TMPLS/js/react to $PWD/app

Project details


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

coge-0.0.2-py2.py3-none-any.whl (5.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file coge-0.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: coge-0.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.4 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

Hashes for coge-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 46cf3d10ff72e3bd45207a7747ee495503f8d9d8303b9d8f33aeb440fc868d7a
MD5 3e26ebc5f5ad1cb825034fe7416081be
BLAKE2b-256 05d44a1082ce295dca2a7c49e5d91d969f1b7e4cbfda1c7ebe139f17db935723

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page