CIT (Command Interface Tool) is a Rust-based command-line tool that serves as a wrapper around Git, providing an enhanced user experience with built-in logging and a simplified command interface. CIT allows you to perform common Git operations seamlessly while logging actions for better tracking and debugging.
- Overview
- Features
- Installation
- Usage
- Building the Project
- Running the Tool
- Commands
- Contributing
- Contact
- License
CIT is designed for developers who want a more intuitive interface for Git operations. It simplifies common tasks such as committing, pushing, switching branches, and viewing logs. The tool logs each action taken, providing a clear history of operations for troubleshooting and audits.
- User-Friendly Command Structure: Simplified commands for common Git operations.
- Logging: Automatic logging of each action performed, aiding in debugging and tracking.
- Error Handling: Graceful error handling with informative messages.
- Custom Help Command: User-friendly help output to guide users on available commands.
To install CIT, you need to have Rust installed on your machine. Follow these steps to set up your development environment:
- Clone the repository:
git clone https://github.com/ByteShifters/cit.git
- Navigate to the project directory:
cd cit
- Build the project:
cargo build --release
To use CIT, run the compiled binary from the command line. You can execute various Git commands by specifying the desired subcommand.
Use cit [COMMAND] to execute a command. For example:
./target/release/cit commit -m "Your commit message"
commit- Commits with a meaningful commit message.push- Pushes the current branch.upd- Adds all changes.undo- Undoes the last commit.log- Shows the git log.switch- Switches branches, creating if needed.diff- Shows the git diff.upload- Adds, commits, and pushes changes.
To build the project, make sure you have the following prerequisites:
After cloning the repository, you can build the project by running:
cargo build --release
This command compiles the source code and generates an executable in the target/release/ directory.
After building, you can run the tool directly from the target/release/ directory or set up a global command for easier access.
To run the tool, use the following command:
./target/release/cit [COMMAND]
Replace [COMMAND] with one of the available commands listed in the Commands section.
We welcome contributions! To contribute to CIT, please follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature/YourFeatureName
- Make your changes.
- Commit your changes:
git commit -m "Add a feature"
- Push to the branch:
git push origin feature/YourFeatureName
- Open a Pull Request.
Please ensure that your code follows our coding standards and that you've tested your changes.
For any inquiries or issues, please contact:
- Maintainer: Ren
- Email: ren@byteshifters.com
You can also open an issue on the GitHub repository for bugs or feature requests.
This project is licensed under the MIT License. See the LICENSE file for more details.