Crates.io | lazycli |
lib.rs | lazycli |
version | 0.1.15 |
source | src |
created_at | 2021-02-27 01:26:30.482324 |
updated_at | 2021-06-02 10:32:16.326799 |
description | A tool to instantly wrap your CLI commands in TUIs |
homepage | https://github.com/jesseduffield/lazycli |
repository | https://github.com/jesseduffield/lazycli |
max_upload_size | |
id | 361165 |
size | 79,404 |
Turn static CLI commands into TUIs with ease
Demo:
Pick a command that spits out either a list or table of content, like ls
, docker ps
, git branch
, or git status --short
. Then run lazycli -- <YOUR COMMAND>
lazycli -- ls
If you find yourself often using lazycli with a specific command, you can easily alias it like so:
echo "alias lcd=\"lazycli -- docker ps\"" >> ~/.zshrc
source ~/.zshrc
lcd
Right now some default keybindings are defined for common commands like ls
, docker ps
, git branch
, git status --short
, etc. But you can customise it for any commands you like! Just open the config file from within the program with $
and start playing around.
lazycli is best suited towards any command-line program that spits out a list of items or a table. In your commands, simply refer to the column number by $0 for the first column, $1 for the second column, etc, and lazycli will do the rest. There are plenty of starting examples in the config that you'll be able to draw from.
cargo install lazycli
Download the binary from the Releases Page
git clone https://github.com/jesseduffield/lazycli.git
cargo install --path .
lazycli -- ls