• Что бы вступить в ряды "Принятый кодер" Вам нужно:
    Написать 10 полезных сообщений или тем и Получить 10 симпатий.
    Для того кто не хочет терять время,может пожертвовать средства для поддержки сервеса, и вступить в ряды VIP на месяц, дополнительная информация в лс.

  • Пользаватели которые будут спамить, уходят в бан без предупреждения. Спам сообщения определяется администрацией и модератором.

  • Гость, Что бы Вы хотели увидеть на нашем Форуме? Изложить свои идеи и пожелания по улучшению форума Вы можете поделиться с нами здесь. ----> Перейдите сюда
  • Все пользователи не прошедшие проверку электронной почты будут заблокированы. Все вопросы с разблокировкой обращайтесь по адресу электронной почте : info@guardianelinks.com . Не пришло сообщение о проверке или о сбросе также сообщите нам.

? Quack Docs — AI-Powered Code Documentation From Your CLI

Lomanu4 Оффлайн

Lomanu4

Команда форума
Администратор
Регистрация
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

  1. ? The Idea
  2. ? How It Works
  3. ? Getting Started
  4. ? Usage
  5. ✨ Why You'll Love It
  6. ? What’s Next
  7. ? Final Thoughts
? The Idea


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.
? How It Works


Here’s what happens under the hood when you run Quack Docs:


  1. ? Reads Your Code File
    The tool reads the entire contents of the provided source file — no splitting or chunking needed.


  2. ? Determines Output Mode
    It checks whether to:
  • generate an external Markdown file, or
  • inject inline docstrings (if --inplace is used).
  1. ✍ 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.
? Getting Started

1️⃣ Clone the Repo


git clone

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.


cd quack-docs
2️⃣ Install Dependencies


make install
3️⃣ 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:

  • ? 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
? What’s Next


Planned improvements include:

  • ? Documentation coverage stats
  • ? VS Code extension
  • ? Terminal duck animation while docs generate
? Final Thoughts


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. ?✨


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

 
Вверх Снизу