Simple Bash Script with TUI framework
This project is a collection of Bash conditional-expression exercises and one Bubble Tea TUI application that wraps the tasks in an interactive terminal interface.
The main TUI app lives in bubbletea_tui/.
- number classification with Bash conditions
- file validation checks
- student name validation
- grade classification
- simple menu workflow with
case - assignment validation for submission folders
- log audit / regex / pipeline demo
- Bubble Tea TUI by Charmbracelet
- Bubbles and Lip Gloss by Charmbracelet
- original shell expression practice structure from the
shell_expr_project
bubbletea_tui/— main interactive TUI applatihan_1.shtolatihan_5.sh— condition/test practice scriptsstudi_kasus_validasi_tugas.sh— submission validation exampleaudit_log.sh— combined audit/log exampletugas.sh— supporting task script
-
Install Bash and Go.
Debian/Ubuntu:
sudo apt update sudo apt install bash golang-go
Fedora:
sudo dnf install bash golang
Arch Linux:
sudo pacman -S bash go
-
Run the TUI:
cd bubbletea_tui go mod tidy go run .
-
Controls:
↑/↓orj/kto navigateTabto switch fieldsEnterorrto runeto export resultEscto go backqto quit
Recommended: use Windows Terminal with PowerShell, Git Bash, or WSL.
- Install Go for Windows from https://go.dev/dl/
- Open a terminal in the project folder.
- Run:
cd bubbletea_tui go mod tidy go run .
If the terminal UI looks odd in old CMD, switch to Windows Terminal or Git Bash.
- The TUI is the main entry point for exploring the project interactively.
- The Bash scripts can still be run directly if you only want the CLI exercises.
- The project is designed for teaching Bash test operators and conditional expressions.
chmod +x *.sh
./latihan_1.sh
./latihan_2.sh
./latihan_3.sh
./latihan_4.sh
./latihan_5.sh
./studi_kasus_validasi_tugas.sh
./audit_log.sh sample.log ERRORgo run .must be executed insidebubbletea_tui/.- Some scripts expect specific input values or files.
- If you run
audit_log.sh, make sure the log file exists. - For best TUI experience, use a modern terminal emulator.
See README-Project-Context.md for the full assignment context and learning goals.