Basic web interface

This commit is contained in:
2024-11-02 12:33:24 +01:00
parent 092a05c3aa
commit 1974769eb4
21 changed files with 679 additions and 98 deletions

View File

@@ -1,15 +1,5 @@
#!/bin/bash
# Check if we're in a git repository
if ! git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
echo "Not in a git repository. Creating temporary one to use gitignore rules..."
# Initialize temporary git repo if not in one
git init >/dev/null 2>&1
temp_git=true
else
temp_git=false
fi
# Clear/create output file
> claude.txt
@@ -32,6 +22,11 @@ echo "=============" >> claude.txt
if [ "$file" = "claude.txt" ]; then
continue
fi
# Skip non-existent files
if [ ! -f "$file" ]; then
continue
fi
# Skip binary files
if file "$file" | grep -q "binary"; then
@@ -44,10 +39,4 @@ echo "=============" >> claude.txt
cat "$file" >> claude.txt
done
# Clean up temporary git repo if we created one
if [ "$temp_git" = true ]; then
rm -rf .git
echo "Cleaned up temporary git repository"
fi
echo "Concatenation complete. Output written to claude.txt"