Giter Club home page Giter Club logo

bashmenu_rust's Introduction

BashMenu Rust Version

This project is a Rust-based rewrite of a Bash script that provides a simple terminal menu to execute commands stored in .menuitem files. It allows users to select a command to execute from a dynamically generated menu based on the .menuitem files present in the project's directory. Additionally, users can add new commands to the menu.

Features

  • Dynamically generates a menu from .menuitem files in the current directory.
  • Executes commands selected by the user.
  • Allows users to add new commands through a simple interface.

Getting Started

Prerequisites

  • Rust (latest stable version recommended)

Installation

  1. Clone the repository:
    git clone https://github.com/yourusername/bashmenu_rust.git
  2. Navigate to the project directory:
    cd bashmenu_rust
  3. Build the project:
    cargo build --release
  4. strip the binary (optional):
    strip target/release/bashmenu_rust

Usage

To run BashMenu Rust, use the following command from the project directory:

cargo run

Follow the on-screen prompts to select a command to execute, add a new command, or quit the menu.

Adding New Commands

To add a new command, select the "new" option from the menu, then enter the command and a nickname when prompted. The command will be saved as a .menuitem file in the current directory and will be available in the menu the next time BashMenu Rust is run.

Create shortcut (optional)

Create a single letter alias to open the menu.

Contributing

Contributions are welcome! Please feel free to submit pull requests or open issues to suggest improvements or report bugs.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Original BashMenu script developers
  • Rust community for providing an excellent programming language

bashmenu_rust's People

Contributors

paloj avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.