"sketch new ." overwriting sketch without confirmation #1175
Labels
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Milestone
Bug Report
Current behavior
Running
arduino-cli sketch new .
(← note the dot) from a sketch directory overwrites an existing.ino
sketch file without asking for confirmation, sketch folder (by accident or not) indeed not empty.Consider for example the following situation (noted bash-like, though see system used below):
Expected behavior
The command should not be destructive like that by default.
fletch new
should not overwrite anything; probably a flag forcing to overwrite may be useful.Environment
arduino-cli version
):arduino-cli alpha Version: 0.15.1 Commit: c7403ed Date: 2021-02-04T10:11:39Z
Windows 10 [Version 10.0.19042.789], x64
The text was updated successfully, but these errors were encountered: