lawyerup将许可证标题添加到代码中
lawyerup的Python项目详细描述
lawyerup将许可证标题添加到代码中。
灵感来自lice。
安装
pip install lawyerup
用法
$ lawyerup --help usage: lawyerup [-h] [--vars | --context [KEY=VALUE [KEY=VALUE ...]]] LICENSE Add license headers to files passed in on stdin positional arguments: LICENSE the license to add, one of GPR, GRR, generic optional arguments: -h, --help show this help message and exit --vars list template variables for specified license --context [KEY=VALUE [KEY=VALUE ...]] KEY=VALUE formatted variables to generate the license
$ cat list-of-files | lawyerup <license> --context KEY1=VAL1 KEY2=VAL2 ...
可用许可证
- 政府目的权(GPR)
- 政府限制权利(GRR)
- 泛型“请参阅复制此发行版根目录中的文件”(generic)
历史记录
0.1.4(2014-11-20)
- 错误修复:python 2.6需要argparse。
- 触笔支持。
0.1.3(2013-12-16)
- 错误修复:从格式化的头中删除尾随空白。
0.1.2(2013-11-13)
- 修正:不要死在空文件上。
- 错误修复:将所有输入文件视为utf-8。
0.1.1(2013-11-13)
- 错误修复版本。实际上在分发中包含许可证头。
0.1.0(2013-11-13)
- 第一次释放。将头添加到从stdin读取的文件列表中。