Install should, if hookboy has not yet been used in the git repository, take a snapshot of the current git hooks folder. It should then delete all files besides the snapshot and place a file called .hookboy-conf to denote that hookboy has been installed.
Uninstall (new command) should check for the existence of a .hookboy-conf file and return gracefully if none is found. If one is found, all hookboy files and folders should be removed from the .git/hooks folder. If a snapshot folder is present, all files and folders from within should be moved back to the .git/hooks folder.
Clean (new command) should ask for confirmation before it is fully ran. When ran, it should delete all files and folders from within the .git/hooks directory.
- "Snapshot" could mean move all existing files to a folder called
snapshot-b4-hookboy
Installshould, if hookboy has not yet been used in the git repository, take a snapshot of the current git hooks folder. It should then delete all files besides the snapshot and place a file called.hookboy-confto denote that hookboy has been installed.Uninstall(new command) should check for the existence of a.hookboy-conffile and return gracefully if none is found. If one is found, all hookboy files and folders should be removed from the.git/hooksfolder. If a snapshot folder is present, all files and folders from within should be moved back to the.git/hooksfolder.Clean(new command) should ask for confirmation before it is fully ran. When ran, it should delete all files and folders from within the.git/hooksdirectory.snapshot-b4-hookboy