| Total Complexity | 2 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | # -*- coding: utf-8 -*- |
||
| 2 | """Console script for module_renamer.""" |
||
| 3 | from __future__ import absolute_import |
||
| 4 | |||
| 5 | import sys |
||
| 6 | |||
| 7 | import click |
||
|
|
|||
| 8 | |||
| 9 | from .commands.track_modifications import track_modifications |
||
| 10 | |||
| 11 | CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help']) |
||
| 12 | |||
| 13 | |||
| 14 | @click.group(context_settings=CONTEXT_SETTINGS) |
||
| 15 | def main(): |
||
| 16 | """ |
||
| 17 | Console script for module_renamer. |
||
| 18 | """ |
||
| 19 | pass |
||
| 20 | |||
| 21 | |||
| 22 | @main.command() |
||
| 23 | @click.argument('project_path', type=click.Path(exists=True)) |
||
| 24 | @click.option('--origin_branch', default='master', |
||
| 25 | help='Branch to start the evaluation') |
||
| 26 | @click.option('--work_branch', default=False, |
||
| 27 | help='Name of the branch that has the modifications') |
||
| 28 | @click.option('--output_file', default='list_output.py', |
||
| 29 | help='Change the name of the output file') |
||
| 30 | def track(**kwargs): |
||
| 31 | track_modifications(**kwargs) |
||
| 32 | |||
| 33 | |||
| 34 | if __name__ == "__main__": |
||
| 35 | sys.exit(main()) # pragma: no cover |
||
| 36 |