Crates.io | tkit |
lib.rs | tkit |
version | 0.1.0 |
created_at | 2025-09-26 01:44:21.192704+00 |
updated_at | 2025-09-26 01:44:21.192704+00 |
description | A toolkit for managing tasks |
homepage | https://github.com/thembinkosimkhonta01/tkit |
repository | https://github.com/thembinkosimkhonta01/tkit |
max_upload_size | |
id | 1855292 |
size | 37,097 |
A Rust CLI tool that works like a package manager with customizable install scripts. Similar to make
, it allows you to define complex installation, removal, and update procedures for any tool through simple YAML configuration.
cargo install tkit
Or build from source:
git clone https://github.com/ThembinkosiThemba/tkit
cd tkit
cargo build --release
sudo cp target/release/tkit /usr/local/bin/
tkit init
tkit list
tkit install node
tkit add mytool
tkit install <tool>
- Install a tool using its defined install commandstkit remove <tool>
- Remove a tool using its defined remove commandstkit update <tool>
- Update a tool using its defined update commandstkit list
- List all available tools and their statustkit add <tool>
- Add a new tool configuration interactivelytkit init
- Initialize configuration with example toolsTools are configured in ~/.config/tkit/config.yaml
. Each tool can have:
tools:
node:
name: node
description: Node.js runtime
install_commands:
- curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
- sudo apt-get install -y nodejs
remove_commands:
- sudo apt-get remove -y nodejs
update_commands:
- sudo apt-get update
- sudo apt-get upgrade -y nodejs
installed: false
rust:
name: rust
description: Rust programming language
install_commands:
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- source ~/.cargo/env
remove_commands:
- rustup self uninstall -y
update_commands:
- rustup update
installed: false
tkit add kubernetes
# Follow prompts to add install/remove/update commands
When adding a tool like Docker, you might define:
Install commands:
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo usermod -aG docker $USER
rm get-docker.sh
Remove commands:
sudo apt-get remove -y docker docker-engine docker.io containerd runc
sudo rm -rf /var/lib/docker
Update commands:
sudo apt-get update
sudo apt-get upgrade -y docker-ce
Cargo.toml
cargo build --release && cargo test
cargo publish
MIT License - see LICENSE file for details.