This commit is contained in:
sankalp committed 2025-12-12 12:23:54 +05:45
1 parent 97a0b34f9c
commit b7faa9e17c
1 file changed
+16 -3
+16 -3
View File
@@ -23,13 +23,13 @@
```bash ```bash
# Stable release from PyPI # Stable release from PyPI
pip install devgen pip install devgen-cli
# Using pipx (recommended for isolated CLI) # Using pipx (recommended for isolated CLI)
pipx install devgen pipx install devgen-cli
# Using uv (fast Python package manager) # Using uv (fast Python package manager)
uv tool install devgen uv tool install devgen-cli
``` ```
## 🚀 Quick Start ## 🚀 Quick Start
@@ -63,12 +63,14 @@ devgen commit run --force-rebuild
``` ```
**How it works:** **How it works:**
- DevGen detects all staged and unstaged changes - DevGen detects all staged and unstaged changes
- Groups files by directory - Groups files by directory
- Generates semantic commit messages for each group using AI - Generates semantic commit messages for each group using AI
- Follows [Conventional Commits](https://www.conventionalcommits.org/) format - Follows [Conventional Commits](https://www.conventionalcommits.org/) format
**Additional commit commands:** **Additional commit commands:**
```bash ```bash
# View cached commit messages # View cached commit messages
devgen commit list-cached devgen commit list-cached
@@ -96,6 +98,7 @@ devgen changelog generate --output CHANGES.md
``` ```
The changelog follows Semantic Release conventions, categorizing commits into: The changelog follows Semantic Release conventions, categorizing commits into:
- **BREAKING CHANGES** - **BREAKING CHANGES**
- **Features** - **Features**
- **Bug Fixes** - **Bug Fixes**
@@ -136,6 +139,7 @@ devgen gitignore generate --offline Python
``` ```
**Options:** **Options:**
- `--append` / `--overwrite` - Append to or overwrite existing `.gitignore` - `--append` / `--overwrite` - Append to or overwrite existing `.gitignore`
- `--output` - Specify output file path (default: `.gitignore`) - `--output` - Specify output file path (default: `.gitignore`)
- `--offline` - Use only cached templates - `--offline` - Use only cached templates
@@ -149,12 +153,14 @@ devgen license generate
``` ```
This will: This will:
1. Show available licenses (MIT, Apache-2.0, GPL-3.0, etc.) 1. Show available licenses (MIT, Apache-2.0, GPL-3.0, etc.)
2. Prompt for author name 2. Prompt for author name
3. Prompt for year (defaults to current year) 3. Prompt for year (defaults to current year)
4. Generate the license file 4. Generate the license file
**Available licenses:** **Available licenses:**
- MIT - MIT
- Apache-2.0 - Apache-2.0
- GPL-2.0, GPL-3.0 - GPL-2.0, GPL-3.0
@@ -176,6 +182,7 @@ devgen setup config
``` ```
**Configuration options:** **Configuration options:**
- `provider` - AI provider: `gemini`, `openai`, `anthropic`, `huggingface`, or `openrouter` - `provider` - AI provider: `gemini`, `openai`, `anthropic`, `huggingface`, or `openrouter`
- `model` - Model name (e.g., `gemini-2.5-flash`, `gpt-4`, `claude-3-opus`) - `model` - Model name (e.g., `gemini-2.5-flash`, `gpt-4`, `claude-3-opus`)
- `api_key` - Your API key - `api_key` - Your API key
@@ -184,6 +191,7 @@ devgen setup config
## 📋 Command Reference ## 📋 Command Reference
### Commit Commands ### Commit Commands
```bash ```bash
devgen commit run [--dry-run] [--push] [--debug] [--force-rebuild] devgen commit run [--dry-run] [--push] [--debug] [--force-rebuild]
devgen commit validate devgen commit validate
@@ -192,27 +200,32 @@ devgen commit clear-cache
``` ```
### Changelog Commands ### Changelog Commands
```bash ```bash
devgen changelog generate [--output FILE] [--from REF] devgen changelog generate [--output FILE] [--from REF]
``` ```
### Release Commands ### Release Commands
```bash ```bash
devgen release notes [--version VERSION] [--output FILE] [--from REF] devgen release notes [--version VERSION] [--output FILE] [--from REF]
``` ```
### Gitignore Commands ### Gitignore Commands
```bash ```bash
devgen gitignore generate [TEMPLATES...] [--output FILE] [--append/--overwrite] [--offline] devgen gitignore generate [TEMPLATES...] [--output FILE] [--append/--overwrite] [--offline]
devgen gitignore list [--cached] devgen gitignore list [--cached]
``` ```
### License Commands ### License Commands
```bash ```bash
devgen license generate [--output FILE] devgen license generate [--output FILE]
``` ```
### Setup Commands ### Setup Commands
```bash ```bash
devgen setup config devgen setup config
``` ```