Shell-hooks

Run pre and post hooks while executing a command, just like githooks but for all programs.

Future plans

Maybe someday

Getting Started

Writing hooks

Currently there are only two useful fields for hook type, the trigger and action. - Trigger: It is any command with space replaced with / and preceded by /cmd/. So git commit becomes /cmd/git/commit. - Action: It is any shell command defined as string. - Execution: Execution mode. Sync can run paralley yet completes before the command. Return status can block the execution of program. Async run parallely with actual command, return code does not matter. Default: Async

Contributing

If you have any contribution idea, please create an issue.

License

MIT License

Copyright