{"id":28264776,"url":"https://github.com/hitblast/hookman","last_synced_at":"2025-09-03T14:47:08.373Z","repository":{"id":294036339,"uuid":"985808162","full_name":"hitblast/hookman","owner":"hitblast","description":"Add hooks to your Git repository using a TOML file.","archived":false,"fork":false,"pushed_at":"2025-08-10T06:35:43.000Z","size":64,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-10T08:29:49.763Z","etag":null,"topics":["git","git-hooks","hookman","pre-commit","pre-commit-hooks","vcs","version-control-system"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/hookman","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hitblast.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-18T15:14:28.000Z","updated_at":"2025-08-10T06:35:46.000Z","dependencies_parsed_at":"2025-08-02T14:19:37.983Z","dependency_job_id":"c9c09bf3-f506-483d-84be-43fb748b187e","html_url":"https://github.com/hitblast/hookman","commit_stats":null,"previous_names":["hitblast/hookman"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/hitblast/hookman","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hitblast%2Fhookman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hitblast%2Fhookman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hitblast%2Fhookman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hitblast%2Fhookman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hitblast","download_url":"https://codeload.github.com/hitblast/hookman/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hitblast%2Fhookman/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273460344,"owners_count":25109754,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","git-hooks","hookman","pre-commit","pre-commit-hooks","vcs","version-control-system"],"created_at":"2025-05-20T09:11:18.539Z","updated_at":"2025-09-03T14:47:08.365Z","avatar_url":"https://github.com/hitblast.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hookman\n\nAdd hooks to your Git repository using a TOML file.\n\n\u003e [!IMPORTANT]\n\u003e If you like this project, consider starring! ⭐ It's free, and it always motivates me to make more of such projects. :D\n\n## Table of Contents\n\n- [Key Features](#key-features)\n- [Usage](#usage)\n- [Installation](#installation)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Key Features\n\n- Automates the creation of multiple git hooks with just one TOML file.\n- No symlinks, no additional `chmod +x` commands or perm-handling is needed. `hookman` does it all for you.\n- Hooks event validation so that you don't accidentally write a wrong hook type.\n- Tiny \u0026 fast; Made using Rust.\n\n## Usage\n\nThe usage is pretty straightforward.\n\nWhen inside the directory of a Git repository, create a new `hookman.toml` file with the following structure:\n\n```toml\n[hook.\u003cevent\u003e]  # the hook type/event (pre-commit, update etc.)\nrun = \"\u003ccommand\u003e\"  # you can either have a `run` field with the command itself\nscript = \"\u003cscript path\u003e\"  # or, your personal script inside the directory\n```\n\nFor example:\n```toml\n[hook.pre-commit]\nrun = \"pip install -U -r requirements.txt \u0026\u0026 pip list \u003e requirements.txt\"\n\n[hook.pre-push]\nscript = \"scripts/bundle-app.sh\"\n```\n\n---\n\n1. To put your hooks into action, run:\n\n```bash\nhookman build\n\n# or use this command to use the current shell for hook execution later on\nhookman build --use-current-shell\n```\n\nWith this command, `hookman` handles all script permissions, relocation and other mundane tasks without you ever having to touch it.\n\n2. To list all installed hooks, run:\n\n```bash\nhookman list\n```\n\n3. To list all possible events a hook can be attached to, run:\n\n```bash\nhookman list-events\n```\n\n4. And, to remove/clean all hooks:\n\n```bash\nhookman clean\n```\n\n## Installation\n\nInstall using `cargo`:\n\n```bash\ncargo install hookman\n```\n\nOr, you can set it up globally using `mise`:\n\n```bash\n# Note: This will compile the binary for your system.\nmise use -g cargo:hookman\n```\n\nFor macOS, you can install using [Homebrew](https://brew.sh/):\n```bash\nbrew install hitblast/tap/hookman\n```\n\n### Manual Installation\n\nIf your platform isn't enlisted here, you can opt for the [compressed binary downloads](https://github.com/hitblast/hookman/releases) in the GitHub Releases section of the repository.\n\nNote than on devices running macOS, you'll have to remove the quarantine attribute from the binary:\n\n```bash\nxattr -d com.apple.quarantine bin/hookman  # inside extracted zip\n```\n\n## Contributing\n\nhookman is a very tiny project for those who'd like to use an extremely minimal setup for managing git hooks, so I don't think there is a need to follow a mandatory set of rules for contribution. Anyhow, pull requests, and new issues regarding feature suggestions, bug fixes or new ideas are always welcome!\n\n## License\n\nLicensed under the MIT License. Please check [LICENSE](./LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhitblast%2Fhookman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhitblast%2Fhookman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhitblast%2Fhookman/lists"}