Skip to content
/ ksc Public

Personal TUI for managing known commands and also make your life easier when you forget all those long args tail of certain commands

Notifications You must be signed in to change notification settings

Thiti-Dev/ksc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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. 📦
  • Search Functionality: Quickly find stored commands using a search interface. 🔍
  • Argument Placeholders: Store commands with placeholders (e.g., ping <address>) and prompt for arguments before execution. 📝➡️🔧
  • Interactive UI: Beautiful and user-friendly terminal interface for seamless command management and execution. 🖼️🎨

Installation 🛠️

  1. Clone the repository:

    git clone https://github.com/Thiti-Dev/ksc.git
    cd ksc

    📂📥

  2. Install dependencies:

    go mod tidy

    📦📋

  3. Build the executable:

    go build -o ksc ./cmd/cli/*

    🏗️🚀

Usage 🚀

Adding Commands ➕

You can add commands to KSC, which can include placeholders for arguments. 📝

Example:

ksc add "ping <address>" "ping to specific address"

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. 🔎

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:

    ksc

    ▶️

  2. Search and select the command ping <address>. 🔍📝

  3. Enter the required argument when prompted:

    Enter value for <address>: 8.8.8.8

    🖊️➡️

KSC will then execute the command ping 8.8.8.8. 🏁🚀

Example

Below is an example session using KSC: 🎬

# Add a command with an argument placeholder
ksc add "ping <address>" "ping to specific address"

# Start KSC
ksc

# Search and select the command
# (User types "ping" in the search box and selects "ping <address>")

# Prompt for the argument value
Enter value for <address>: 8.8.8.8

# 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 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! 🚀💻🎉


About

Personal TUI for managing known commands and also make your life easier when you forget all those long args tail of certain commands

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published