feat: Enhance Plex management with library scanner integration and bash completion support

This commit is contained in:
Peter Wood
2025-06-26 09:15:24 -04:00
parent 563daa51af
commit 6e84bb33d6
4 changed files with 326 additions and 36 deletions

View File

@@ -43,7 +43,7 @@ The completion system provides intelligent tab completion for command-line flags
- `--help`, `-h` - Show help message
- `--dry-run` - Preview backup without executing
- `--no-upload` - Skip B2 upload (local backup only)
- `--no-upload` - Skip B2 upload (local backup only)
- `--verbose` - Enable verbose logging
### backup-plex.sh
@@ -187,7 +187,7 @@ backup-immich.sh --<TAB>
# Relative path
./backup-immich.sh --<TAB>
# Absolute path
# Absolute path
/home/acedanger/shell/immich/backup-immich.sh --<TAB>
```
@@ -276,9 +276,9 @@ _script_name_completion() {
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
opts="--option1 --option2 --option3"
# Handle special cases
case "${prev}" in
--special-option)
@@ -286,7 +286,7 @@ _script_name_completion() {
return 0
;;
esac
# Standard flag completion
if [[ ${cur} == -* ]]; then
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )