Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def main():
delete = typer.confirm("Are you sure you want to delete it?", abort=True)
typer.echo("Deleting it!")
def can_write_to_path(self) -> bool:
if self.overwrite or not self.path.exists():
return True
echo(f"There is an existing {self.path.name} file.")
return confirm("Do you want to overwrite it?")
def main():
delete = typer.confirm("Are you sure you want to delete it?")
if not delete:
typer.echo("Not deleting")
raise typer.Abort()
typer.echo("Deleting it!")