Releases: Karthikeya-Akhandam/codetodocx
v1.1.0
π Major Release: Fixed Critical Issues & Enhanced Functionality
π Critical Fixes
License Error Fixed
- Replaced proprietary
uniofficelibrary (required commercial license) with free open-sourcego-docxlibrary
(AGPL-3.0) - The tool now works without any license errors
First-Time Export Bug Fixed
- Previous behavior: On first run, only exported changed files, missing the entire existing codebase
- New behavior: First-time export includes ALL git-tracked files, subsequent runs export only changed files
- This ensures you get the complete codebase on initial export
Other Bug Fixes
- Fixed invalid Go version in
go.mod(1.24.4 β 1.24) - Fixed divide-by-zero panic when processing empty files
β¨ New Features
Smart Export Modes
- π First-time export: Automatically exports all git-tracked files
- π Incremental export: Exports only modified/added/untracked files
- π Non-git folders: Exports entire project directory
New CLI Flags
-full- Force export of all files (even on subsequent runs)-changed-only- Force export of only changed files (even on first run)-help- Show usage information with examples
Enhanced Formatting
- π’ Line numbers added to all code
- π Full file paths shown (not just filenames)
- β Horizontal separators between files
- π Improved font sizing (16pt titles, 14pt headings, 10pt code)
- π Better spacing and visual structure
π Documentation Updates
- Updated README.md with new features and usage examples
- Added CLAUDE.md for future development guidance
- Documented all CLI flags and export modes
π§ Technical Changes
New Functions
getAllGitTrackedFiles()- Get all git-tracked files usinggit ls-filesExportProjectWithOptions()- Advanced API with manual export control
API Changes
ExportProject()maintains backward compatibility with smart defaults- Document generation now always creates fresh files (no longer appends)
π Files Changed
- 6 files modified
- 353 lines added, 71 lines removed
π Upgrade Notes
No breaking changes for existing users. The ExportProject() function maintains the same signature with improved
behavior.
CodeTodox v1.0.0 - Smart Code Export to Word Documents
CodeTodox v1.0.0 - Smart Code Export to Word Documents
CodeTodox v1.0.0 - Smart Code Export to Word Documents
What is CodeTodox?
CodeTodox is a smart Go package that automatically exports your code to Microsoft Word documents. It intelligently detects if you're in a git repository and exports only changed files, or exports the entire project if it's not a git repository.
β¨ Key Features
- Smart Detection: Automatically detects git repositories and exports only changed files
- Word Document Export: Creates professional Word documents with your code
- Incremental Updates: Appends to existing documents instead of overwriting
- Git Integration: Exports files with git status M (modified), A (added), or U (untracked)
- Intelligent File Filtering: Automatically skips binary files and detects text files
- Bold Headings: File names appear as bold headings in the document
π Quick Start
# Install the package
go get github.com/Karthikeya-Akhandam/codetodox
# Use it in your code
package main
import (
"fmt"
"github.com/Karthikeya-Akhandam/codetodox"
)
func main() {
// One function call - automatically does the smart thing!
err := codetodox.ExportProject("./myproject", "mycode.docx")
if err != nil {
fmt.Println("Error:", err)
}
}π― How It Works
The ExportProject() function is intelligent and automatically:
- Git Repository: Exports only changed files (M/A/U status)
- Regular Folder: Exports entire project
- Existing Document: Appends to existing Word document
- New Document: Creates fresh Word document
οΏ½οΏ½ What's Included
- β Smart git integration for changed files only
- β Automatic binary file detection and filtering
- β Professional Word document formatting
- β Incremental document updates
- β Simple one-function API
- β CLI example included
- β Comprehensive documentation
οΏ½οΏ½ Requirements
- Go 1.24.4 or later
- Git (optional, for git integration)
- Microsoft Word or compatible software to view output
π Documentation
Check out the README.md for detailed usage instructions and examples.
π Perfect For
- Code documentation and sharing
- Project code reviews
- Creating readable code backups
- Sharing code with non-technical stakeholders
- Generating professional code reports
CodeTodox - Because sometimes you need your code in a Word document! οΏ½οΏ½β¨
Install now: go get github.com/Karthikeya-Akhandam/codetodox
Full Changelog: https://github.com/Karthikeya-Akhandam/codetodocx/commits/v1.0.0