Reset the config file.
(ctx, yes)
| 293 | @click.option("-y", "--yes", help="Don't ask for confirmation.", is_flag=True) |
| 294 | @click.pass_context |
| 295 | def config_reset(ctx, yes): |
| 296 | """Reset the config file.""" |
| 297 | config_path = ctx.obj["config_path"] |
| 298 | if not yes: |
| 299 | if not Confirm.ask( |
| 300 | f"Are you sure you want to reset the config file at {config_path}?", |
| 301 | ): |
| 302 | console.print("[green]Reset aborted") |
| 303 | return |
| 304 | |
| 305 | set_user_defaults(config_path) |
| 306 | console.print(f"Reset the config file at [bold cyan]{config_path}!") |
| 307 | |
| 308 | |
| 309 | @config.command("path") |
nothing calls this directly
no test coverage detected