2022-06-12 15:28:25 +00:00
|
|
|
[total-lines]: https://img.shields.io/tokei/lines/github/MedzikUser/HomeDisk?style=for-the-badge&logo=github&color=fede00
|
|
|
|
[code-size]: https://img.shields.io/github/languages/code-size/MedzikUser/HomeDisk?style=for-the-badge&color=c8df52&logo=github
|
|
|
|
[crates-io]: https://img.shields.io/badge/crates.io-fc8d62?style=for-the-badge&labelColor=555555&logo=rust
|
|
|
|
[docs-rs]: https://img.shields.io/badge/docs.rs-66c2a5?style=for-the-badge&labelColor=555555&logo=docs.rs
|
|
|
|
[ci]: https://img.shields.io/github/workflow/status/MedzikUser/rust-crypto-utils/Rust/main?style=for-the-badge&logo=github
|
|
|
|
|
2022-01-26 18:22:15 +00:00
|
|
|
# Imgurs - CLI and Library for Imgur API
|
|
|
|
|
2022-06-12 15:28:25 +00:00
|
|
|
[![total-lines]](https://github.com/MedzikUser/HomeDisk)
|
|
|
|
[![code-size]](https://github.com/MedzikUser/HomeDisk)
|
|
|
|
[![crates-io]](https://crates.io/crates/imgurs)
|
|
|
|
[![docs-rs]](https://docs.rs/imgurs)
|
|
|
|
[![ci]](https://github.com/MedzikUser/imgurs/actions/workflows/rust.yml)
|
2022-05-18 18:16:13 +00:00
|
|
|
|
2022-01-26 18:22:15 +00:00
|
|
|
## Screenshots
|
|
|
|
|
2022-05-18 17:48:39 +00:00
|
|
|
![](https://i.imgur.com/MG35kvf.png)
|
2022-01-26 18:22:15 +00:00
|
|
|
|
2022-05-18 17:48:39 +00:00
|
|
|
![](https://i.imgur.com/TSxBrhO.png)
|
2022-01-26 18:22:15 +00:00
|
|
|
|
|
|
|
## Shell completions
|
|
|
|
|
|
|
|
Here are some examples of usage
|
|
|
|
```bash
|
|
|
|
# For bash
|
2022-01-26 18:24:37 +00:00
|
|
|
imgurs completions bash > ~/.local/share/bash-completion/completions/imgurs
|
2022-01-26 18:22:15 +00:00
|
|
|
# For zsh
|
|
|
|
imgurs completions zsh > /usr/local/share/zsh/site-functions/_imgurs
|
|
|
|
# For fish
|
|
|
|
imgurs completions fish > ~/.config/fish/completions/imgurs.fish
|
|
|
|
```
|
|
|
|
|
2022-03-02 21:16:44 +00:00
|
|
|
## Man page
|
|
|
|
|
|
|
|
Generate manpage
|
|
|
|
|
|
|
|
imgurs manpage | gzip > /usr/share/man/man1/imgurs.1.gz
|
|
|
|
|
2022-02-27 10:39:02 +00:00
|
|
|
## Dependencies
|
2022-02-28 22:20:50 +00:00
|
|
|
- support clipboard on Linux
|
|
|
|
- **xsel**
|
|
|
|
- **xclip** - alternative to **xsel**
|
|
|
|
- **termux-api** - on **Termux**
|
2022-02-27 10:39:02 +00:00
|
|
|
- **libnotify** - support notification on Linux
|
|
|
|
|
2022-01-26 18:22:15 +00:00
|
|
|
## How to install Imgurs CLI?
|
|
|
|
|
|
|
|
### **Linux**
|
|
|
|
Download imgurs-linux from [the releases page](https://github.com/MedzikUser/imgurs/releases/latest) and run
|
|
|
|
|
|
|
|
chmod +x imgurs-linux
|
|
|
|
./imgurs-linux
|
|
|
|
|
|
|
|
#### **Arch Linux**
|
2022-02-12 22:24:20 +00:00
|
|
|
Using yay ([AUR](https://aur.archlinux.org/packages/imgurs))
|
|
|
|
|
|
|
|
yay -S imgurs
|
|
|
|
|
2022-03-02 21:16:44 +00:00
|
|
|
or can add [this repo](https://github.com/archlinux-pkg/packages) and run
|
2022-01-26 18:22:15 +00:00
|
|
|
|
|
|
|
sudo pacman -Sy imgurs
|
|
|
|
|
|
|
|
### **OSX**
|
|
|
|
Download imgurs-darwin from [the releases page](https://github.com/MedzikUser/imgurs/releases/latest) and run
|
|
|
|
|
|
|
|
chmod +x imgurs-darwin
|
|
|
|
./imgurs-darwin
|
|
|
|
|
|
|
|
### **Windows**
|
|
|
|
Download imgurs-windows.exe from [the releases page](https://github.com/MedzikUser/imgurs/releases/latest) and run
|
|
|
|
|
|
|
|
imgurs-windows.exe
|
|
|
|
|
|
|
|
### **Compile with Cargo**
|
|
|
|
Make sure you have a recent version of Rust. Then you can run
|
|
|
|
|
|
|
|
cargo install imgurs
|