(dirty)
| 26 | @click.group(chain=True) |
| 27 | @click.option("--dirty", is_flag=True) |
| 28 | def cli(dirty): |
| 29 | if dirty: |
| 30 | print("Keeping temporary files.") |
| 31 | else: |
| 32 | print("Cleaning up temporary files...") |
| 33 | if TEMP_DIR.exists(): |
| 34 | shutil.rmtree(TEMP_DIR) |
| 35 | if DIST_DIR.exists(): |
| 36 | shutil.rmtree(DIST_DIR) |
| 37 | |
| 38 | TEMP_DIR.mkdir() |
| 39 | DIST_DIR.mkdir() |
| 40 | |
| 41 | |
| 42 | @cli.command() |