Metadata-Version: 2.4
Name: gen-cli
Version: 0.1.4
Summary: Gen-CLI is a Python-based tool to generate boilerplate code and framework templates for multiple programming languages.
Author: Prasad Raju G
License: MIT License
        
        Copyright (c) 2026 Prasad Raju G
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Requires-Python: >=3.13
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: jinja2
Dynamic: license-file

# Gen-CLI

**Gen-CLI** is a Python-based command-line tool for generating boilerplate code and
framework templates for multiple programming languages.

It supports:
- Single-file boilerplate generation based on file extension
- Project scaffolding using language and framework templates
- Directory tree visualization
- Environment diagnostics

---

## Installation

```bash
pip install gen-cli
````

*or run from source*

```bash
git clone https://github.com/yourname/gen-cli.git
cd gen-cli
python -m gen
```

---

## Usage

```bash
gen <command> [arguments]
```

---

## Commands

### `help`

Show the help message.

```bash
gen help
gen --help
gen -h
```

---

### `list`

List all available language templates.

```bash
gen list
```

---

### `doctor`

Check environment and configuration.

```bash
gen doctor
```

---

### `tree`

Display a tree view of the directory structure.

```bash
gen tree
gen tree -r           # recursive
gen tree -3           # depth = 3
gen tree path/to/dir
```

---

### `new`

Generate a new project using a language and framework template.

```bash
gen new <project_name> --lang <language> --template <framework>
```

#### Example

```bash
gen new myapp --lang python --template fastapi
```

> ⚠️ Both `--lang` and `--template` flags are required.

---

### Single File Generation

Generate a boilerplate file based on its extension.

```bash
gen main.py
gen app.go
gen index.js
```

The tool determines the template automatically using the file extension.

---

## Supported Languages & Templates

| Language   | Templates              |
| ---------- | ---------------------- |
| Python     | flask, fastapi, django |
| Go         | cli, web               |
| Rust       | actix, rocket          |
| C          | standard               |
| C++        | standard               |
| Java       | spring, standard       |
| JavaScript | node, react, vue       |
| HTML       | standard               |

---

## Directory Tree Example

```text
project/
├── main.py
├── app/
│   ├── __init__.py
│   └── routes.py
└── README.md
```

---

## Error Handling

* Invalid commands show the help message
* Invalid file extensions list supported templates
* Tree command falls back to current directory on error

---

## Project Structure

```text
gen/
├── commands/
│   ├── helper.py
│   ├── list_.py
│   └── template.py
├── config.py
└── main.py
```

---

## License

MIT License
