(dir_, skip_convert)
| 72 | |
| 73 | |
| 74 | def main(dir_, skip_convert): |
| 75 | files = get_files_matching_pattern(dir_, "*.json") |
| 76 | if skip_convert: |
| 77 | PRINT(files) |
| 78 | return |
| 79 | results = [json_2_yaml_convert(filename) for filename in files] |
| 80 | PRINT("*** conversion done ***") |
| 81 | PRINT(["converted {} to {}".format(result[0], result[1]) for result in results]) |
| 82 | results = [git_rm(filename) for filename, new_filename in results if new_filename] |
| 83 | PRINT("*** git rm done ***") |
| 84 | |
| 85 | |
| 86 | if __name__ == "__main__": |
no test coverage detected