MCPcopy Create free account
hub / github.com/nathom/streamrip / config_reset

Function config_reset

streamrip/rip/cli.py:295–306  ·  view source on GitHub ↗

Reset the config file.

(ctx, yes)

Source from the content-addressed store, hash-verified

293@click.option("-y", "--yes", help="Don't ask for confirmation.", is_flag=True)
294@click.pass_context
295def 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")

Callers

nothing calls this directly

Calls 2

set_user_defaultsFunction · 0.85
printMethod · 0.80

Tested by

no test coverage detected