Skip to content

Control output better #2

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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