├── .gitignore ├── bin ├── gpbegin ├── gpend └── gpinvoice ├── man └── man1 │ ├── gpinvoice.1.ronn │ ├── gpbegin.1.ronn │ ├── gpinvoice.1 │ ├── gpend.1.ronn │ ├── gpbegin.1 │ └── gpend.1 ├── README.md ├── Makefile └── lib └── gp.sh /.gitignore: -------------------------------------------------------------------------------- 1 | *.swp 2 | -------------------------------------------------------------------------------- /bin/gpbegin: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | #/ Usage: gpbegin [-r] -b [-m] 6 | #/ -r repository path (default ~/.gitpaid) 7 | #/ -b branch name 8 | #/ -m commit message (default empty) 9 | #/ -h show this help message 10 | 11 | . "$(dirname "$(dirname "$0")")/lib/gp.sh" 12 | 13 | while getopts m:b:r:h NAME 14 | do 15 | case "$NAME" in 16 | m) MESSAGE="$OPTARG";; 17 | b) BRANCH="$OPTARG";; 18 | r) REPO="$OPTARG";; 19 | *) usage;; 20 | esac 21 | done 22 | 23 | gpinit 24 | 25 | gpcommit "$MESSAGE" 26 | -------------------------------------------------------------------------------- /man/man1/gpinvoice.1.ronn: -------------------------------------------------------------------------------- 1 | gpinvoice(1) -- generate an invoice 2 | =================================== 3 | 4 | ## SYNOPSIS 5 | 6 | `gpinvoice` [`-b` _branch_] [`-r` _repo_] 7 | 8 | ## DESCRIPTION 9 | 10 | `gpinvoice` prints an invoice in `markdown`(5) format to _stdout_. The invoice contains the full work log with begin and end times, subtotal billable time, and total billable time. 11 | 12 | ## OPTIONS 13 | 14 | * `-b` _branch_: 15 | Branch name (default _master_). 16 | * `-r` _repo_: 17 | Repository path (default _~/.gitpaid_). 18 | * `-h`: 19 | Show a help message. 20 | 21 | ## FILES 22 | 23 | * _~/.gitpaid_: 24 | The default repository for Git Paid data. 25 | 26 | ## ENVIRONMENT 27 | 28 | * `GITPAID_REPO`: 29 | Override for the default repository. 30 | * `GITPAID_BRANCH`: 31 | Override for the default branch. 32 | 33 | ## THEME SONG 34 | 35 | Notorious B.I.G. - "Mo Money Mo Problems" 36 | 37 | ## AUTHOR 38 | 39 | Richard Crowley 40 | -------------------------------------------------------------------------------- /bin/gpend: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | #/ Usage: gpend [-r] -b [-t