Crates.io | gitup |
lib.rs | gitup |
version | 0.1.0 |
source | src |
created_at | 2024-08-13 23:01:44.369361 |
updated_at | 2024-08-13 23:01:44.369361 |
description | Gitup is a Rust CLI tool for checking, installing, and configuring Git on your system. |
homepage | https://github.com/exaluc/gitup |
repository | https://github.com/exaluc/gitup |
max_upload_size | |
id | 1336612 |
size | 9,951 |
Gitup is a simple Rust CLI tool designed to help you set up and configure Git on your system. This tool checks if Git is installed, installs it if necessary, and configures your Git user name and email.
To build Gitup, you'll need to have Rust installed on your system.
cargo build --release
This will create an optimized binary in the target/release/
directory.You can run the Gitup tool with various options:
Basic Usage:
./target/release/gitup
This command will check if Git is installed and, if not, prompt you to install it. It will then ask you to configure Git with your name and email.
Provide Git User Information via Command-Line Arguments:
./target/release/gitup --user "Your Name" --email "your.email@example.com"
This command allows you to specify your Git user name and email directly via the command line.
JSON Output:
./target/release/gitup --json
Use this option to get the current Git configuration in JSON format.
Running with Prompts:
./target/release/gitup
Running with Arguments:
./target/release/gitup --user "Jane Doe" --email "jane.doe@example.com"
Getting JSON Output:
./target/release/gitup --json
Debian
Archlinux Almalinux/RockyLinux Windows Mac
Feel free to open issues or submit pull requests if you want to contribute to the project.
Lucian BLETAN