Package: cctm
CCTM = cookie cutter template managerproject templates manager forcookiecutter(python3 only)quick examples$cctminit$cctmselfupdate$cctminstallaudreyr/cookiecutter-pypackage$cctmuseaudreyr/cookiecutter-pypackage# alias$cctmmanagementaliasaudreyr/cookiecutter-pypackagepypackage$cctmusepypackage# extra_context configuration$cctmconfig--name=full_name--value=podhmo.podhmo$cctmusepypackagesetup$pipinstallcctmcctm uses individual configuration file(cctm.json).searching cctm.jsonsearching method is here.first, from current working directory, searching “cctm.json” file, recuresively.e.g. if cwd is~/foo/bar/boo. searching below paths.~/foo/bar/boo/cctm.json~/foo/bar/cctm.json~/foo/cctm.json~/cctm.jsonsecond, if cctm.json is not found on first process, then, using~/.cctm/cctm.json(default path)generating configuration filegenerating configuration file viacctm init.$cctminit# if generating configuration file as current working directory$cctminit--project=.package informationlisting package information viacctm list$cctmlist|greppypackagekragniz/cookiecutter-pypackage-minimal(12)--Aminimaltemplateforpythonpackagesaudreyr/cookiecutter-pypackage(555)--CookiecuttertemplateforaPythonpackage.pypackage->audreyr/cookiecutter-pypackage# this is aliasshow detail viacctm show$cctmshowaudreyr/cookiecutter-pypackage{"updated_at":"2016-01-08T22:53:23Z","url":"https://github.com/audreyr/cookiecutter-pypackage","name":"audreyr/cookiecutter-pypackage","description":"Cookiecutter template for a Python package.","star":555,"created_at":"2013-07-14T18:52:05Z"}using cookiecutterinstalling cookiecutter templateinstalling the template viacctm install$cctminstallchrisdev/wagtail-cookiecutter-foundation# wagtail-cookiecutter-foundation is installed$cctmlist--installedaudreyr/cookiecutter-pypackagechrisdev/wagtail-cookiecutter-foundationusing cookiecutter templateusing installed template viacctm use$cctmusechrisdev/wagtail-cookiecutter-foundationif you are irritated by long-long-name,cctm management aliasis helpful, maybe.$cctmmanagementaliaschrisdev/wagtail-cookiecutter-foundationmywagtail$cctmlist--alias|grepwagtailmywagtail->chrisdev/wagtail-cookiecutter-foundation$cctmusemywagtail# it's is also ok.default configuration settingsif you want to set a default context, usingcctm config# show configuration$cctmconfig|jq.extra_context{"name":"podhmo",}# edit configuration$cctmconfig--name=project_name--value=hello# delete configuration$cctmconfig--name=project_nameextra_context attribute in config file is using as cookiecutter’s extra context, so.$cctmusemywagtailproject_name[WagtailProject]:# cancel$cctmconfig--name=project_name--value=hello$cctmusemywagtailproject_name[hello]:your custom repositoriesif you store url inrepositoriesof configration file, cctm recognizes as package repositoriy.default reposotiries are here."repositories": [
  "https://raw.githubusercontent.com/podhmo/cctm/master/data/cookiecutter.index.json"
]package format example{
  "name": "chrisdev/wagtail-cookiecutter-foundation",
  "url": "https://github.com/chrisdev/wagtail-cookiecutter-foundation",
  "description": "Cookiecutter template for Wagtail CMS using Zurb Foundation 5",
  "created_at": "2015-04-13T13:36:50Z",
  "updated_at": "2016-01-04T14:53:04Z",
  "star": 23
}if you know, github url, be able to fetch information viacctm management fetch$cctmmanagementfetchchrisdev/wagtail-cookiecutter-foundation{"name":"chrisdev/wagtail-cookiecutter-foundation","url":"https://github.com/chrisdev/wagtail-cookiecutter-foundation","description":"Cookiecutter template for Wagtail CMS using Zurb Foundation 5","created_at":"2015-04-13T13:36:50Z","updated_at":"2016-01-04T14:53:04Z","star":23}# store data at local.json$cctmmanagementfetchchrisdev/wagtail-cookiecutter-foundation--save--store=./local.jsonplease, don’t forget to callcctm selfupdate. this command synchnonizes at local data and repositoriies data.$cctmselfupdate0.2build bug fix.