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:
-
Clone the repository:
git clone https://github.com/Mindslayer001/Beginner-Cli.git
-
Navigate to the project directory:
cd Beginner-Cli
-
Run the Setup.sh:
chmod +x setup.sh ./setup.sh
Usage
To use the Beginner CLI Tool, you have several options:
-
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
-
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:
- Visit Google AI Studio.
- Obtain your API key. The free tier is available with certain limitations.
- Once obtained, replace the placeholder
YOUR_API_KEYin theconfig.inifile located in thebeg_clidirectory 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:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your_feature). - Make your changes.
- Commit your changes (
git commit -am 'Add some feature'). - Push to the branch (
git push origin feature/your_feature). - 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5f568fa11e6a282180ea16e0dca6000ec9d4cb3406afbaf269a4325dec24e11
|
|
| MD5 |
89c789347c7cc57db16ff33f17d7fb9d
|
|
| BLAKE2b-256 |
9665f380952dcb75a6a1ed25f77222723c8756d8e5dd890154de49d61a1585da
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92d86162785bee70350254ea2910acab7ae4f0394fbeb20ae51ecb4dec89870c
|
|
| MD5 |
217dea4b180617b457b49bd000ed8aa1
|
|
| BLAKE2b-256 |
386f9fbfbcfb4b1424604d3dd3fa0a7a7af5889b807d65f346cdaeb93cf587b7
|