Skip to content

Control output better #2

@chbrown

Description

@chbrown

Fix regression(-ish) in caeba7b that allows files to write wherever they want.

Ideas

  • Default to refusing to overwrite existing files
    • require a -f / --force flag to clobber files
    • still might make a mess, despite averting egregious destruction
  • Add -n / --dry-run option to preview what files would be written
    • would allow user to finagle destination (cd or via --output flag) to accommodate the results
    • still requires foresight to use it in the first place
  • Relativize / rename files targeting paths outside destination
    • e.g., replace ../src/myfile.js with something like ./PARENT-src/myfile.js

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions