Add --backup parameter to backup the to-be-deleted forks
BrunnerLivio opened this issue · comments
Even with the confirmation message Remove the above listed forks?
, I have an uncertain feeling. To prevent the worst from happening I'd suggest adding a --backup
parameter, which simply clones every to be deleted repository to a specified folder.
E.g.
➜ fork-cleaner --token <MY_TOKEN> --backup /tmp/repo-backup
2 forks to delete:
--> https://github.com/BrunnerLivio/repo-1
--> https://github.com/BrunnerLivio/repo-2
Remove the above listed forks? (y/n) [n]: y
Forks have been backed up in /tmp/ repo-backup
Forks removed!
➜ tree /tmp/repo-backup
repo-backup
├── repo-1
└── repo-2
Another option would be to archive the repos instead of deleting them. Then you could manually go through and delete them once you're certain.
sorry, but I rather not.
You can get the output of the CLI and shell it to do the git clones and etc as you want :)
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.