- Регистрация
- 1 Мар 2015
- Сообщения
- 1,481
- Баллы
- 155
This is a submission for the : Crushing the Command Line
Hey devs! ?
Introducing Quack Docs — a command-line tool that generates full documentation for your code using the power of the Amazon Q Developer CLI. No chunking, no partials — just clean, complete docs with a single command.
? Source Code:
?️ Built With: Python and Amazon Q Developer CLI
? Table of Contents
Let’s be honest: writing documentation isn't most developers’ idea of fun.
So I thought — what if you could skip the boring part and instantly generate beautiful, structured docs right from your terminal?
Quack Docs was born to solve just that.
What It Does:
Here’s what happens under the hood when you run Quack Docs:
Clone the Repo
git clone
cd quack-docs
Install Dependencies
make install
Set Up Amazon Q CLI
Follow the and authenticate:
q login
? Usage
Generate Markdown Documentation
python main.py --file path/to/your_file.py
Outputs a full .md doc to the docs/ folder.
Example output: docs/quack_calculator_20250510_103000.md
? Sample Markdown Output:
# Quack Docs — calculator.py
file: calculator.py
created at: 2025-05-10
---
## Overview
The Calculator class provides basic arithmetic functions and stores the result of the last operation.
## Methods
### add(a, b)
Performs addition of two numbers and stores the result in memory.
Parameters:
• a: First number
• b: Second number
Returns:
• The sum of the two numbers
Inject Docstrings into Your Code
python main.py --file path/to/your_file.py --inplace
Modifies your file in place by adding intelligent docstrings.
? Before:
def add(a, b):
return a + b
After:
def add(a, b):
"""
Add two numbers and return the result.
Args:
a: First number
b: Second number
Returns:
The sum of a and b.
"""
return a + b
Why You'll Love It
Quack Docs:
Planned improvements include:
Quack Docs is a no-nonsense, fun little tool that helps developers focus on what they love — coding — while Amazon Q Developer CLI handles the documentation.
Thanks to AWS and DEV for a fun, productive challenge.
Let the ducks document. ?
Hey devs! ?
Introducing Quack Docs — a command-line tool that generates full documentation for your code using the power of the Amazon Q Developer CLI. No chunking, no partials — just clean, complete docs with a single command.
? Source Code:
?️ Built With: Python and Amazon Q Developer CLI
? Table of Contents
- ? The Idea
- ? How It Works
- ? Getting Started
- ? Usage
Why You'll Love It- ? What’s Next
- ? Final Thoughts
Let’s be honest: writing documentation isn't most developers’ idea of fun.
So I thought — what if you could skip the boring part and instantly generate beautiful, structured docs right from your terminal?
Quack Docs was born to solve just that.
What It Does:
- ? Generates Markdown documentation for your code files.
- ? Adds smart, context-aware docstrings directly into your code.
Works with a single command — no chunking or manual editing required.
Here’s what happens under the hood when you run Quack Docs:
? Reads Your Code File
The tool reads the entire contents of the provided source file — no splitting or chunking needed.
? Determines Output Mode
It checks whether to:
- generate an external Markdown file, or
- inject inline docstrings (if --inplace is used).
Builds a Prompt and Sends It to Amazon Q Based on the selected mode, it creates a tailored prompt, sends it to Amazon Q Developer CLI, and saves the output — either as a .md file or a modified code file with docstrings.
git clone
cd quack-docs
make install
Follow the and authenticate:
q login
? Usage
python main.py --file path/to/your_file.py
Example output: docs/quack_calculator_20250510_103000.md
? Sample Markdown Output:
# Quack Docs — calculator.py
file: calculator.py
created at: 2025-05-10
---
## Overview
The Calculator class provides basic arithmetic functions and stores the result of the last operation.
## Methods
### add(a, b)
Performs addition of two numbers and stores the result in memory.
Parameters:
• a: First number
• b: Second number
Returns:
• The sum of the two numbers
python main.py --file path/to/your_file.py --inplace
? Before:
def add(a, b):
return a + b
def add(a, b):
"""
Add two numbers and return the result.
Args:
a: First number
b: Second number
Returns:
The sum of a and b.
"""
return a + b
Quack Docs:
- ? Instantly documents your code with zero hassle
- ? Outputs well-structured Markdown or enhances your source files with rich docstrings
Automates a boring task so you can focus on building- ? Adds a touch of duck-themed joy to your terminal experience
Planned improvements include:
- ? Documentation coverage stats
- ? VS Code extension
- ? Terminal duck animation while docs generate
Quack Docs is a no-nonsense, fun little tool that helps developers focus on what they love — coding — while Amazon Q Developer CLI handles the documentation.
Thanks to AWS and DEV for a fun, productive challenge.
Let the ducks document. ?