#!/bin/bash # Simple demo to show current help coverage status echo "๐Ÿ“š Current Help System Status" echo "==============================" echo "" echo "๐Ÿ“‹ Available Cheat Sheets:" echo "-------------------------" ls -1 /opt/cheatsheets/personal/ 2>/dev/null | head -20 | sed 's/^/ โœ… /' echo "" echo "๐Ÿ“– Available TLDR Pages (custom):" echo "---------------------------------" ls -1 /home/remnux/.local/share/tldr/pages/common/*.md 2>/dev/null | \ sed 's|.*/||; s|\.md$||' | head -20 | sed 's/^/ โœ… /' echo "" echo "๐Ÿงช Testing fhelp cheat resolution:" echo "----------------------------------" echo " Testing: fhelp cheat pdfid" fhelp cheat pdfid 2>&1 | head -5 | sed 's/^/ /' echo "" echo " Testing: fhelp cheat pdfid.py (with .py)" fhelp cheat pdfid.py 2>&1 | head -5 | sed 's/^/ /' echo "" echo " Testing: fhelp cheat oledump" fhelp cheat oledump 2>&1 | head -5 | sed 's/^/ /' echo "" echo "๐Ÿ“Š Quick Check - Key Tools:" echo "--------------------------" KEY_TOOLS=("pdfid" "pdf-parser" "peepdf" "pdftk" "capa" "oledump" "binwalk" "strings") for tool in "${KEY_TOOLS[@]}"; do cheat_status="โŒ" tldr_status="โŒ" # Check cheat (simple file test) if [[ -f "/opt/cheatsheets/personal/$tool" ]] || [[ -f "/opt/cheatsheets/personal/${tool}.py" ]]; then cheat_status="โœ…" fi # Check TLDR (simple file test) if [[ -f "/home/remnux/.local/share/tldr/pages/common/${tool}.md" ]] || \ [[ -f "/home/remnux/.local/share/tldr/pages/common/${tool}.py.md" ]]; then tldr_status="โœ…" fi printf " %-20s CHEAT: %s TLDR: %s\n" "$tool" "$cheat_status" "$tldr_status" done echo "" echo "โœจ Summary:" cheat_count=$(ls -1 /opt/cheatsheets/personal/ 2>/dev/null | wc -l) tldr_count=$(ls -1 /home/remnux/.local/share/tldr/pages/common/*.md 2>/dev/null | wc -l) echo " ๐Ÿ“ Cheat sheets: $cheat_count" echo " ๐Ÿ“š TLDR pages: $tldr_count" echo "" echo "๐Ÿ’ก To add more tools:" echo " 1. Place remnux-tldr-cheatsheet.md in /data" echo " 2. Run: import-remnux-cheatsheets.sh /data/remnux-tldr-cheatsheet.md"