Crates.io | hut-utils |
lib.rs | hut-utils |
version | 0.1.5 |
created_at | 2025-05-31 05:41:11.328802+00 |
updated_at | 2025-06-03 06:39:29.331398+00 |
description | A simple Rust CLI extension to interact with sourcehut |
homepage | https://git.sr.ht/~anhkhoakz/hut-cli-utils |
repository | https://git.sr.ht/~anhkhoakz/hut-cli-utils |
max_upload_size | |
id | 1696061 |
size | 24,913 |
hut-utils is a fast, simple CLI extension written in Rust for interacting with sourcehut. It supports multiple input formats and is designed for efficient use in the terminal.
git clone https://git.sr.ht/~anhkhoakz/hut-cli-utils
cd hut-cli-utils
just build
System-wide (optional, requires sudo):
just install
Or from crates.io:
cargo install hut-utils
just uninstall
# or, if installed via Cargo:
cargo uninstall hut-utils
hut-utils [COMMAND]
paste edit
: Edit a paste on sourcehut by deleting the old one and creating a new one.paste rename
: Rename an existing paste on sourcehut.-h, --help
: Print help for the tool or command.-V, --version
: Print the version of the tool.hut-utils paste edit --source-file <source-file> --remote-file <remote-file> --visibility <visibility>
hut-utils paste rename --current-name <current-name> --new-name <new-name>
If you provide invalid input, the tool will print an error and usage instructions.
Contributions are welcome! Please open issues or pull requests on Sourcehut. See the root CONTRIBUTING.md
for guidelines.
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.