文件模板是创建新文件时生成的默认内容的规范。
carson-tool.create_template的Python项目详细描述
Source Code: | https://github.com/CarsonSlovoka/carson-tool.create_template/blob/master/Carson/Tool/CreateTemplate/create_template.py |
---|---|
Compatible: | Python >3.6 |
Platform: | Windows |
License: | Apache 2.0 |
Author Doc: | https://carsonslovoka.github.io/CarsonDoc/ |
文件模板是创建新文件时生成的默认内容的规范。在
此脚本帮助您在当前工作目录中创建模板文件。在
就像PyCharm File and code templates
唯一的区别是它支持您使用命令行来完成。在
1安装
- pip install carson-tool.create_template
2使用
- create_template.bat [REFERENCE TEMPLATE] [OUTPUT FILE NAME]创建模板,例如:create_template.bat PEP PEP.0484.py
- create_template.bat -l *获取所有可用模板
- create_template.bat -o open打开模板目录,以便可以将模板文件放在那里。在
- 位置参数:
- ^{tb2}$
- 可选参数:
-h, --help show this help message and exit --list LIST, -l LIST example: -l *
description: list current available template. (accept regex)
--option OPTION, -o OPTION Option Example Description -o open open template directory so that you can put your template file there.
- 项目
标签: