Adds the publish parser to the given subparsers object.
(subparsers, _)
| 11 | |
| 12 | |
| 13 | def parser(subparsers, _): |
| 14 | """Adds the publish parser to the given subparsers object.""" |
| 15 | desc = 'publish commits upstream' |
| 16 | publish_parser = subparsers.add_parser( |
| 17 | 'publish', help=desc, description=desc.capitalize()) |
| 18 | publish_parser.add_argument( |
| 19 | 'dst', nargs='?', help='the branch where to publish commits') |
| 20 | publish_parser.set_defaults(func=main) |
| 21 | |
| 22 | |
| 23 | def main(args, repo): |
nothing calls this directly
no outgoing calls
no test coverage detected