# Path: nappingcat/patterns.py
# def patterns(path, *args):
#     return CommandPatterns(path, args) 


from nappingcat.patterns import patterns

cmdpatterns = patterns('nappingcat.contrib.git.handlers',
    (r'^kitty-git fork \'(?P<repo>[\w\.\-\\\/]+).git\'', 'fork_repo'),
    (r'^kitty-git create-repo \'(?P<repo_name>[\w\/\\\-\.]+)\'( --template=\'(?P<template_dir>.*)\')?', 'create_repo'),
    (r'^kitty-git delete-repo \'(?P<repo_name>[\w\/\\\-\.]+)\'', 'delete_repo'),

# Path: nappingcat/patterns.py
# def patterns(path, *args):
#     return CommandPatterns(path, args) 


# Path: nappingcat/contrib/git/patterns.py
from nappingcat.patterns import patterns


cmdpatterns = patterns('nappingcat.contrib.git.handlers',
    (r'^kitty-git fork \'(?P<repo>[\w\.\-\\\/]+).git\'', 'fork_repo'),
    (r'^kitty-git create-repo \'(?P<repo_name>[\w\/\\\-\.]+)\'( --template=\'(?P<template_dir>.*)\')?', 'create_repo'),
    (r'^kitty-git delete-repo \'(?P<repo_name>[\w\/\\\-\.]+)\'', 'delete_repo'),

    (r'^kitty-git list (?P<username>[\w\\\-\.]+)', 'list_repos'),