mirror of
https://github.com/rwinkhart/cmutton.git
synced 2026-08-28 04:46:46 -04:00
Initial code commit
This commit is contained in:
Executable
+20
@@ -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
|
||||
Reference in New Issue
Block a user