polymer-dart
polymer-dart copied to clipboard
pub run polymer:new_entry somefile.html should not overwrite existing files
<img src="https://avatars.githubusercontent.com/u/405837?v=3" align="left" width="96" height="96"hspace="10"> Issue by zoechi Originally opened as dart-lang/sdk#20624
pub run polymer:new_entry somefile.html
just overwrites an existing file
myuser@mypc ~/dart/bwu_testrunner (lauchers) $ pub run polymer:new_entry web/index.html Successfully created: /home/myusesr/dart/bwu_testrunner/web/index.html
edited the file
host@mypc ~/source/my/dart/bwu_testrunner (lauchers) $ pub run polymer:new_entry web/index.html Successfully created: /home/myuser/dart/bwu_testrunner/web/index.html
changes are lost
it should either require the user to delete the file first or warn and ask for permission to overwrite.
Polmyer 0.12.1 Dart VM version: 1.6.0-edge.39436 (Wed Aug 20 16:03:02 2014) on "linux_x64"
This tool doesn't exist yet in the new polymer, but the new_element one does and it will overwrite files so it should be updated.