te-cli-0.1.0 is not a library.
te (手)
Your helping hand for command-line interfaces
te (Japanese: 手, "hand") is an interactive TUI wrapper that makes complex CLI commands easier to use by prompting you for required arguments and showing you all available options.
The Problem
Command-line tools are powerful but often hard to remember:
# Which arguments were required again?
# Building complex commands from memory
The Solution
With te, just type the command and it will guide you:
te will:
- 📋 Parse the command's help to identify required and optional arguments
- ✨ Present an interactive TUI for filling in values
- 🎯 Remember your frequently used options
- 💾 Save command history for quick reuse
- ⚡ Generate the final command with one keystroke
Features
🎨 Interactive TUI
Beautiful terminal interface built with ratatui that shows:
- Required arguments (must fill)
- Optional arguments (choose what you need)
- Argument descriptions and types
- Real-time command preview
🧠 Smart Suggestions
- Frequency-based sorting: Most-used options appear first
- Context-aware completions: Suggests valid values based on your environment
- Default values: Mark commonly used values as defaults
📚 History & Presets
# Quick access to command history
# Save frequently used command patterns
# Reuse saved presets
🔧 Universal Wrapper
Works with any CLI tool:
aws- AWS CLIkubectl- Kubernetesdocker- Dockerffmpeg- Video processinggit- Version control- Any command-line tool with
--help
Installation
# With cargo
# From source
Usage
Basic Usage
# Wrap any command
# Examples
Command History
# View and reuse previous commands
# Search history
Presets
# Save current configuration as preset
# Use preset
# List all presets
Configuration
Configuration is stored in ~/.te/:
~/.te/
├── config.toml # Global settings
├── history.db # Command execution history
├── presets/ # Saved command presets
│ ├── aws-dev.yaml
│ └── kubectl-prod.yaml
└── schemas/ # Custom command schemas (optional)
└── custom-tool.yaml
Example config.toml
[]
# Enable frequency-based sorting
= true
# Save command history
= true
# Maximum history entries
= 1000
[]
# Color scheme: "default", "nord", "dracula"
= "default"
# Show preview pane
= true
How It Works
- Parse:
teruns<command> --helpand parses the output to extract arguments - Present: Shows an interactive TUI with all options
- Build: Constructs the final command based on your input
- Execute: Runs the command or copies it to clipboard
Comparison
| Tool | Scope | Features |
|---|---|---|
AWS CLI --cli-auto-prompt |
AWS only | Interactive prompts, resource suggestions |
kube-prompt |
kubectl only | Auto-complete |
trogon |
Python Click/Typer apps | Auto-generated TUI |
te |
Any CLI tool | Interactive TUI + History + Presets |
Why "te" (手)?
In Japanese, 手 (te) means "hand" - representing:
- 🤝 A helping hand for complex commands
- ✋ Easy to type (just 2 characters)
- 🎌 Honoring the Unix philosophy with a Japanese touch
Roadmap
- Basic TUI interface
- Help parsing
- Command history
- Preset management
- Smart suggestions
- Context-aware completions
- Shell integration (bash, zsh, fish)
- Custom schema support
- Team preset sharing
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT License - see LICENSE for details
Credits
Built with:
- ratatui - Terminal UI framework
- crossterm - Cross-platform terminal manipulation
- clap - Command line argument parsing
Star ⭐ this repo if you find it useful!