https://github.com/msrd0/ellipse-bin
Command that truncates and ellipses strings in a human-friendly way
https://github.com/msrd0/ellipse-bin
Last synced: about 2 months ago
JSON representation
Command that truncates and ellipses strings in a human-friendly way
- Host: GitHub
- URL: https://github.com/msrd0/ellipse-bin
- Owner: msrd0
- License: gpl-3.0
- Created: 2022-08-02T15:37:00.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-02T16:03:51.000Z (almost 3 years ago)
- Last Synced: 2025-02-13T08:30:11.126Z (4 months ago)
- Language: Rust
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ellipse
Command that truncates and ellipses strings in a human-friendly way.
## How to use
```
$ echo very long sentence |ellipse -n 12
very long se…
```## How to install
Installation instructions are provided for ArchLinux only. When using a different
operation system, adoption to their package manager is left as an exercise to the
reader.### Install from AUR (recommended)
This example uses `yay`, but you can use your favourite AUR helper instead.
```bash
yay -S ellipse
```### Install via cargo
First, install rust/cargo:
```bash
sudo pacman -S rust
```Then, install with cargo:
```bash
cargo install ellipse-bin
```This will only work if you have cargo's binary install directory added to your `$PATH`
variable.