diff --git a/plex/plex.sh b/plex/plex.sh index f3d415d..68944ae 100755 --- a/plex/plex.sh +++ b/plex/plex.sh @@ -775,27 +775,27 @@ show_help() { echo -e "${BOLD}${WHITE}Usage:${RESET} ${CYAN}${SCRIPT_NAME}${RESET} ${YELLOW}${RESET}" echo "" echo -e "${BOLD}${WHITE}Available Commands:${RESET}" - echo -e " ${GREEN}${BOLD}start${RESET} ${ROCKET} Start Plex Media Server" - echo -e " ${YELLOW}${BOLD}stop${RESET} ${STOP_SIGN} Stop Plex Media Server" - echo -e " ${BLUE}${BOLD}restart${RESET} ${RECYCLE} Restart Plex Media Server" - echo -e " ${CYAN}${BOLD}status${RESET} ${INFO} Show detailed service status" - echo -e " ${PURPLE}${BOLD}scan${RESET} ${SPARKLES} Library scanner operations" - echo -e " ${RED}${BOLD}repair${RESET} [!] Repair database corruption issues" - echo -e " ${RED}${BOLD}nuclear${RESET} [!!] Nuclear database recovery (last resort)" - echo -e " ${CYAN}${BOLD}backups${RESET} [#] List and manage database backup files" - echo -e " ${GREEN}${BOLD}install-dbrepair${RESET} Install or update DBRepair tool" - echo -e " ${PURPLE}${BOLD}help${RESET} [*] Show this help message" + printf " ${GREEN}${BOLD}%-18s${RESET} %s %s\n" "start" "${ROCKET}" "Start Plex Media Server" + printf " ${YELLOW}${BOLD}%-18s${RESET} %s %s\n" "stop" "${STOP_SIGN}" "Stop Plex Media Server" + printf " ${BLUE}${BOLD}%-18s${RESET} %s %s\n" "restart" "${RECYCLE}" "Restart Plex Media Server" + printf " ${CYAN}${BOLD}%-18s${RESET} %s %s\n" "status" "${INFO}" "Show detailed service status" + printf " ${PURPLE}${BOLD}%-18s${RESET} %s %s\n" "scan" "${SPARKLES}" "Library scanner operations" + printf " ${RED}${BOLD}%-18s${RESET} %s %s\n" "repair" "[!]" "Repair database corruption issues" + printf " ${RED}${BOLD}%-18s${RESET} %s %s\n" "nuclear" "[!!]" "Nuclear database recovery (last resort)" + printf " ${CYAN}${BOLD}%-18s${RESET} %s %s\n" "backups" "[#]" "List and manage database backup files" + printf " ${GREEN}${BOLD}%-18s${RESET} %s %s\n" "install-dbrepair" "[+]" "Install or update DBRepair tool" + printf " ${PURPLE}${BOLD}%-18s${RESET} %s %s\n" "help" "${HOURGLASS}" "Show this help message" echo "" echo -e "${DIM}${WHITE}Examples:${RESET}" - echo -e " ${DIM}${SCRIPT_NAME} start # Start the Plex service${RESET}" - echo -e " ${DIM}${SCRIPT_NAME} status # Show current status${RESET}" - echo -e " ${DIM}${SCRIPT_NAME} scan # Launch library scanner interface${RESET}" - echo -e " ${DIM}${SCRIPT_NAME} repair # Fix database issues${RESET}" - echo -e " ${DIM}${SCRIPT_NAME} nuclear # Complete database replacement${RESET}" - echo -e " ${DIM}${SCRIPT_NAME} backups # List and manage DB backups${RESET}" - echo -e " ${DIM}${SCRIPT_NAME} backups delete # Interactive backup deletion${RESET}" - echo -e " ${DIM}${SCRIPT_NAME} backups delete --name foo # Delete by name pattern${RESET}" - echo -e " ${DIM}${SCRIPT_NAME} install-dbrepair # Install/update DBRepair${RESET}" + printf " ${DIM}%-40s # %s${RESET}\n" "${SCRIPT_NAME} start" "Start the Plex service" + printf " ${DIM}%-40s # %s${RESET}\n" "${SCRIPT_NAME} status" "Show current status" + printf " ${DIM}%-40s # %s${RESET}\n" "${SCRIPT_NAME} scan" "Launch library scanner interface" + printf " ${DIM}%-40s # %s${RESET}\n" "${SCRIPT_NAME} repair" "Fix database issues" + printf " ${DIM}%-40s # %s${RESET}\n" "${SCRIPT_NAME} nuclear" "Complete database replacement" + printf " ${DIM}%-40s # %s${RESET}\n" "${SCRIPT_NAME} backups" "List and manage DB backups" + printf " ${DIM}%-40s # %s${RESET}\n" "${SCRIPT_NAME} backups delete" "Interactive backup deletion" + printf " ${DIM}%-40s # %s${RESET}\n" "${SCRIPT_NAME} backups delete --name foo" "Delete by name pattern" + printf " ${DIM}%-40s # %s${RESET}\n" "${SCRIPT_NAME} install-dbrepair" "Install/update DBRepair" echo "" }