Skip to main content

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 description

Beginner CLI Tool

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
    

Usage

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

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

    poetry run python beg_cli/argsparser.py --info [COMMAND]
    

    Example:

    poetry run python beg_cli/argsparser.py --info mkdir
    
  2. Scenario-based Command Suggestion: Suggests commands based on a user scenario.

    poetry run python beg_cli/argsparser.py --scenario
    

    Example:

    poetry run python beg_cli/argsparser.py --scenario "I want to rename a file"
    

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

  1. Visit Google AI Studio.
  2. Obtain your API key. The free tier is available with certain limitations.
  3. Once obtained, replace the placeholder YOUR_API_KEY in the config.ini file located in the beg_cli directory with your actual API key.
[GENAI]
api_key = YOUR_API_KEY

With your API key configured, you'll be able to use the Beginner CLI Tool with access to the Gemini API.

Alternatively, you can input your API key directly into the CLI tool, and it will configure it automatically.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

beg_cli-0.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

beg_cli-0.1.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file beg_cli-0.1.0.tar.gz.

File metadata

  • Download URL: beg_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.8 Linux/6.6.19-1-MANJARO

File hashes

Hashes for beg_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d5f568fa11e6a282180ea16e0dca6000ec9d4cb3406afbaf269a4325dec24e11
MD5 89c789347c7cc57db16ff33f17d7fb9d
BLAKE2b-256 9665f380952dcb75a6a1ed25f77222723c8756d8e5dd890154de49d61a1585da

See more details on using hashes here.

File details

Details for the file beg_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: beg_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.8 Linux/6.6.19-1-MANJARO

File hashes

Hashes for beg_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 92d86162785bee70350254ea2910acab7ae4f0394fbeb20ae51ecb4dec89870c
MD5 217dea4b180617b457b49bd000ed8aa1
BLAKE2b-256 386f9fbfbcfb4b1424604d3dd3fa0a7a7af5889b807d65f346cdaeb93cf587b7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page