mirror of
https://github.com/acedanger/shell.git
synced 2025-12-05 22:50:18 -08:00
feat: Enhance Plex management with library scanner integration and bash completion support
This commit is contained in:
@@ -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}) )
|
||||
|
||||
Reference in New Issue
Block a user