Skip to content

Nsomnia/chad-zui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CHAD-TUI

The Superior Terminal User Interface Framework

License: MIT

"I use Arch btw" - Every DevOps Team Lead Ever

Written in pure zsh because bash is for junior devs who still use Ubuntu.

Features

  • Fluent Interface: A simple and intuitive command-line interface.
  • Pure Zsh: No external dependencies required.
  • Modular Design: Easily extendable with new modes and components.
  • Robust Input Handling: Powered by zcurses for reliable keyboard input.

Installation

  1. Clone the repository:
    git clone https://github.com/your-username/chad-tui.git
  2. Add the chad-tui script to your PATH:
    ln -s "$(pwd)/chad-tui/chad-tui" /usr/local/bin/chad-tui

Usage

Choose Mode

Interactive selection from a list of options.

chad-tui choose "vim" "emacs" "nano" --header "Choose your fighter:"

Input Mode

Text input prompt with validation.

chad-tui input --placeholder "Enter your name" --header "Who are you?"

Confirm Mode

Yes/No confirmation dialog.

chad-tui confirm "Delete node_modules?" --affirmative "Chad Yes" --negative "No way"

Dialog Mode

Display a message dialog box.

chad-tui dialog "Build succeeded!" --type success --title "CI/CD"

Spin Mode

Loading spinner for long-running tasks.

chad-tui spin --title "Installing dependencies..." -- npm install

Notify Mode

Toast-style notification.

chad-tui notify "That's... acceptable. I guess." --type warning

About

The chad-iest zsh tui of all time. Gum+dialog+whiptail+unicode, mixed with "bro, do you even arch, btw?". Config and compile that kernel, son!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages