Initial code commit

This commit is contained in:
2026-01-20 23:17:25 -05:00
parent 6f1c18901e
commit 2268a7a6c3
6 changed files with 125 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
#!/usr/bin/env bash
# Get all packages in libmutton
mapfile -s 1 -t packages < <(go list github.com/rwinkhart/libmutton/... 2>/dev/null | sed 's|github.com/rwinkhart/libmutton/||')
# If no packages found, exit
if [ ${#packages[@]} -eq 0 ]; then
echo "No packages found in libmutton"
exit 1
fi
# Iterate through each package
for package in "${packages[@]}"; do
echo "- [ ] $package"
mapfile -t lines < <(go doc -short "github.com/rwinkhart/libmutton/$package" 2>/dev/null | grep "func ")
for line in "${lines[@]}"; do
line="${line#"${line%%[![:space:]]*}"}"
echo " - [ ] ${line:5}"
done
done