| Crates.io | scripture |
| lib.rs | scripture |
| version | 0.5.0 |
| created_at | 2024-12-22 10:35:27.580183+00 |
| updated_at | 2024-12-22 10:35:27.580183+00 |
| description | A robust command-line tool for managing, validating, and generating standardised Git commit messages. |
| homepage | |
| repository | https://github.com/ThatSealgair/scripture |
| max_upload_size | |
| id | 1491851 |
| size | 32,789 |
A robust command-line tool for managing, validating, and generating standardised Git commit messages. This tool helps maintain consistent commit message standards across your project by providing automated message generation, validation, and formatting capabilities.
To install the tool, ensure you have Rust and Cargo installed on your system. Then:
cargo install scripture
Simply stage your changes and run the tool:
git add .
scripture
This will:
commit.mdValidate a commit message string:
scripture -m "Add new feature"
Or validate a commit message file:
scripture -f path/to/message.txt
Generated commit messages follow this structure:
Subject line (max 50 characters)
Message body sections:
The tool enforces these standard verbs:
The tool automatically identifies breaking changes based on keywords such as:
Commit messages are validated against these rules:
The tool uses a default configuration that defines:
Generated commit messages include these sections:
# References [Required]
# Link to related tickets, docs, or discussions
Closes #
Relates to #
See also:
# Testing Instructions [Optional]
# Describe how to test these changes
1. Steps to test
2. Expected outcomes
3. Edge cases to verify
# Dependencies [Optional]
# List any prerequisite changes or dependencies
- [ ] Database migrations
- [ ] Configuration updates
- [ ] External service changes
The tool provides clear error messages for:
Contributions are welcome! Please ensure your commits follow the standards enforced by this tool.
MIT License
Copyright (c) 2024 [Author Name]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.