使用提交消息中的任务和工时生成发票
gitime的Python项目详细描述
跟踪你的付费时间和你的承诺。Gitime允许您根据提交消息生成包含任务和工时的发票
Read the docs了解更多详细信息
简单用法
设置小时费率:
$ gitime set -r 50
开始新发票:
$ gitime invoice -n "Awesome Secret Project"
工作时间:
$ gitime timer start
按正常方式进行提交,但在提交步骤中,使用gitime
而不是git
:
$ git add feature.c $ gitime commit -m "Added a really cool thing" $ git push
或者,如果您不喜欢计时器,请用--hours
标记自己记录时间:
$ gitime commit -m "Proved Riemann Hypothesis" --hours 2
查看您的发票:
$ gitime status On invoice Awesome Secret Project Total time worked: 3 hours Total charges: $150.00 Charges: 07-21-2014 1 hour Added a really cool thing 07-22-2014 2 hours Proved Riemann Hypothesis
到付账的时候,把你的发票导出到电子表格中。目前,唯一可用的格式是csv。更多格式即将推出:
$ gitime export
安装
要使用gitime,需要安装两件东西:
- Git,以及路径上名为
git
的可执行文件 - Python 2.7(或Python 3.4)
使用以下命令安装最新版本:
$ pip install gitime
或者使用以下命令安装开发版本:
$ git clone https://github.com/jongoodnow/gitime.git $ cd gitime $ pip install -r requirements.txt $ python setup.py install