https://github.com/thiti-dev/ksc
Personal TUI for managing known commands and also make your life easier when you forget all those long args tail of certain commands
https://github.com/thiti-dev/ksc
bubbletea gob golang
Last synced: 3 months ago
JSON representation
Personal TUI for managing known commands and also make your life easier when you forget all those long args tail of certain commands
- Host: GitHub
- URL: https://github.com/thiti-dev/ksc
- Owner: Thiti-Dev
- Created: 2024-05-20T12:25:47.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-23T09:06:39.000Z (about 1 year ago)
- Last Synced: 2024-05-23T10:26:42.160Z (about 1 year ago)
- Topics: bubbletea, gob, golang
- Language: Go
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# KSC (Known Shell Commands) 🚀
![]()
KSC is a Terminal User Interface (TUI) executable written in Go, designed to manage and execute frequently used shell commands efficiently. It allows users to store, search, and execute commands, including those with arguments, through an intuitive and interactive interface. 🖥️✨
## Features 🌟
- **Command Storage**: Add and manage frequently used shell commands. 📦
`) and prompt for arguments before execution. 📝➡️🔧
- **Search Functionality**: Quickly find stored commands using a search interface. 🔍
- **Argument Placeholders**: Store commands with placeholders (e.g., `ping
- **Interactive UI**: Beautiful and user-friendly terminal interface for seamless command management and execution. 🖼️🎨## Installation 🛠️
1. **Clone the repository**:
```sh
git clone https://github.com/Thiti-Dev/ksc.git
cd ksc
```
📂📥2. **Install dependencies**:
```sh
go mod tidy
```
📦📋3. **Build the executable**:
```sh
go build -o ksc ./cmd/cli/*
```
🏗️🚀## Usage 🚀
### Adding Commands ➕
You can add commands to KSC, which can include placeholders for arguments. 📝
Example:
" "ping to specific address"
```sh
ksc add "ping
```
✨### Searching and Selecting Commands 🔍
When you start KSC, you will see a list of added commands. Use the search functionality to filter through the list. 🔎
```sh
ksc
```
📜### Executing Commands with Arguments 🛠️
If a command includes placeholders, KSC will prompt you to fill in the required arguments before execution. 📝➡️
Example:
1. Start KSC:
```sh
ksc
```
▶️2. Search and select the command `ping
`. 🔍📝3. Enter the required argument when prompted:
: 8.8.8.8
```sh
Enter value for
```
🖊️➡️KSC will then execute the command `ping 8.8.8.8`. 🏁🚀
## Example
Below is an example session using KSC: 🎬
```sh
" "ping to specific address"
# Add a command with an argument placeholder
ksc add "ping# Start KSC
ksc# Search and select the command
")
# (User types "ping" in the search box and selects "ping# Prompt for the argument value
: 8.8.8.8
Enter value for# Command is executed: ping 8.8.8.8
```
🎉🎉🎉## Contributions 🤝
Contributions are welcome! Please feel free to submit a Pull Request or open an issue. 🙏✨
## License 📜
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details. 📄
---
With KSC, managing and executing your frequently used shell commands has never been easier. Enjoy a seamless and interactive experience right from your terminal! 🚀💻🎉
---