use click.style instead of two click lines.
This commit is contained in:
parent
7e80f28528
commit
0b33838780
1 changed files with 1 additions and 2 deletions
|
|
@ -201,8 +201,7 @@ def freeze(ctx, requirement): # pragma: no cover
|
|||
|
||||
overwrite = None
|
||||
if (os.path.exists(os.path.join(cwd,"requirements.txt"))):
|
||||
click.secho("\nrequirements.txt file already exists in this location.", fg="red")
|
||||
overwrite = click.confirm("Do you want to overwrite it?", default=False)
|
||||
overwrite = click.confirm(click.style("\nrequirements.txt file already exists in this location.\nDo you want to overwrite it?", fg="red"), default=False)
|
||||
else:
|
||||
overwrite = True
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue