Skip to content

Commit

Permalink
Add subcommand for control napokaz updates;
Browse files Browse the repository at this point in the history
  • Loading branch information
naspeh committed Sep 22, 2013
1 parent 43fa2e3 commit 3008db8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ def sub(name, **kw):
sub('bootstrap', help='install dependencies')\
.exe(lambda a: sh('pip install -r requirements.txt --no-index'))

sub('napokaz', help='napokaz updater')\
.arg('--push', action='store_true')\
.arg('--init', action='store_true')\
.exe(lambda a: sh(
'git remote add napokaz git@github.com:naspeh/napokaz.git'
if a.init else
'git subtree %s -P data/s/napokaz/src napokaz master'
% ('push' if a.push else 'pull --squash')
))

args = parser.parse_args(args)
if not hasattr(args, 'sub'):
parser.print_usage()
Expand Down

0 comments on commit 3008db8

Please sign in to comment.