|
|
@ -15,15 +15,10 @@ class GitPlugin(PapersPlugin):
|
|
|
|
self.pubsdir = conf['main']['pubsdir']
|
|
|
|
self.pubsdir = conf['main']['pubsdir']
|
|
|
|
|
|
|
|
|
|
|
|
def update_parser(self, subparsers, conf):
|
|
|
|
def update_parser(self, subparsers, conf):
|
|
|
|
git_parser = self.parser(subparsers)
|
|
|
|
git_parser = subparsers.add_parser(self.name, help=self.description)
|
|
|
|
|
|
|
|
git_parser.add_argument('arguments', nargs='*', help="look at man git")
|
|
|
|
git_parser.set_defaults(func=self.command)
|
|
|
|
git_parser.set_defaults(func=self.command)
|
|
|
|
|
|
|
|
|
|
|
|
def parser(self, parser):
|
|
|
|
|
|
|
|
self.parser = parser
|
|
|
|
|
|
|
|
p = parser.add_parser(self.name, help=self.description)
|
|
|
|
|
|
|
|
p.add_argument('arguments', nargs='*', help="look at man git")
|
|
|
|
|
|
|
|
return p
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def command(self, conf, args):
|
|
|
|
def command(self, conf, args):
|
|
|
|
"""Runs the git program in a shell"""
|
|
|
|
"""Runs the git program in a shell"""
|
|
|
|
self.shell(' '.join([shell_quote(a) for a in args.arguments]))
|
|
|
|
self.shell(' '.join([shell_quote(a) for a in args.arguments]))
|
|
|
|