(completer, executor)
| 130 | |
| 131 | @refresher("casing") |
| 132 | def refresh_casing(completer, executor): |
| 133 | casing_file = completer.casing_file |
| 134 | if not casing_file: |
| 135 | return |
| 136 | generate_casing_file = completer.generate_casing_file |
| 137 | if generate_casing_file and not os.path.isfile(casing_file): |
| 138 | casing_prefs = "\n".join(executor.casing()) |
| 139 | with open(casing_file, "w") as f: |
| 140 | f.write(casing_prefs) |
| 141 | if os.path.isfile(casing_file): |
| 142 | with open(casing_file) as f: |
| 143 | completer.extend_casing([line.strip() for line in f]) |
| 144 | |
| 145 | |
| 146 | @refresher("functions") |
nothing calls this directly
no test coverage detected