Giter Club home page Giter Club logo

mindslayer001 / beginner-cli Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 1.46 MB

The Beginner CLI Tool is a Python-based command-line interface designed to assist newcomers in learning and executing Linux commands interactively. It provides features such as command explanations and scenario-based command suggestions.

License: MIT License

Python 84.43% Shell 15.57%
ai-linux-learning-tool cli-tool educational-project gemini-api genai linux-beginners linux-command python-cli-tool linux-education linux-learners

beginner-cli's Introduction

Beginner CLI Tool

Alt text

Description

The Beginner CLI Tool is a Python-based command-line interface designed to assist newcomers in learning and executing Linux commands interactively. It provides features such as command explanations and scenario-based command suggestions.

Project Structure

.
├── beg_cli
│   ├── argsparser.py        # Main script for command-line parsing
│   ├── config.ini           # Configuration file
│   ├── demo.py              # Demo script or additional functionality
│   ├── __init__.py          # Initialization file for the CLI package
│   └── __pycache__          # Cache directory (automatically generated)
│       └── argsparser.cpython-311.pyc
├── LICENSE.md               # License file
├── poetry.lock              # Poetry lock file (dependency lock)
├── pyproject.toml           # Poetry project configuration
├── README.md                # Project README file (you are here!)
└── tests
    └── __init__.py          # Initialization file for tests (if any)

Installation

To install the Beginner CLI Tool, follow these steps:

  1. Clone the repository:

    git clone https://github.com/Mindslayer001/Beginner-Cli.git
  2. Navigate to the project directory:

    cd Beginner-Cli
  3. Run the Setup.sh:

    chmod +x setup.sh
    ./setup.sh
  4. Obtain Gemini API Key:

    To gain access to the Gemini API, you'll need to acquire an API key. Follow these steps to obtain your API key:

    1. Navigate to Google AI Studio.
    2. Obtain your API key. Please note that the free tier is available with specific limitations.
    3. Input your API key directly into the CLI tool, and it will configure it automatically.

Usage

To use the Beginner CLI Tool, you have several options:

  1. Command Explainer: Provide basic information and examples of a specific Linux command.

    begcli -i [COMMAND]

    Example:

    begcli -i mkdir

    command-line image Command-line demo

  2. Scenario-based Command Suggestion: Suggests commands based on a user scenario.

    begcli -s [User Query]

    Example:

    begcli -s "I want to rename a file"

    scenario-based image Scenario-based demo

Contributing

Contributions to the Beginner CLI Tool are welcomed! If you'd like to contribute, please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/your_feature).
  3. Make your changes.
  4. Commit your changes (git commit -am 'Add some feature').
  5. Push to the branch (git push origin feature/your_feature).
  6. Create a new Pull Request.

License

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

The project utilizes the Gemini API provided by GenAI under their free tier. Please refer to the GenAI Terms of Service for more information about the usage of their services.

beginner-cli's People

Contributors

mindslayer001 avatar

Stargazers

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