equal
deleted
inserted
replaced
52 |
52 |
53 if [[ "$w1" == "--relation" && "x$w0" == "x" ]]; then COMPREPLY=("''") |
53 if [[ "$w1" == "--relation" && "x$w0" == "x" ]]; then COMPREPLY=("''") |
54 elif [[ "$w1" == "--as" && "x$w0" == "x" ]]; then COMPREPLY=("''") |
54 elif [[ "$w1" == "--as" && "x$w0" == "x" ]]; then COMPREPLY=("''") |
55 elif [[ "$w1" == "--option" && "x$w0" == "x" ]]; then COMPREPLY=("''") |
55 elif [[ "$w1" == "--option" && "x$w0" == "x" ]]; then COMPREPLY=("''") |
56 elif [[ "$w2" == "--option" && "x$w0" == "x" ]]; then COMPREPLY=("''") |
56 elif [[ "$w2" == "--option" && "x$w0" == "x" ]]; then COMPREPLY=("''") |
|
57 elif [[ "$w1" == "--parallel" && "x$w0" == "x" ]]; then COMPREPLY=($(nproc --all)) |
57 elif [[ "$w1" == "--file" ]]; then COMPREPLY=($(compgen -W "${FILE_FIELDS[*]}" -- "$w0")) |
58 elif [[ "$w1" == "--file" ]]; then COMPREPLY=($(compgen -W "${FILE_FIELDS[*]}" -- "$w0")) |
58 elif [[ "$w1" == "--xattr" ]]; then COMPREPLY=($(compgen -W "${XATTR_FIELDS[*]}" -- "$w0")) |
59 elif [[ "$w1" == "--xattr" ]]; then COMPREPLY=($(compgen -W "${XATTR_FIELDS[*]}" -- "$w0")) |
59 elif [[ "$w1" == "--streamlet" ]]; then COMPREPLY=($(while read c; do PATH="$RELPIPE_IN_FILESYSTEM_STREAMLET_PATH" type -P "$c" &>/dev/null && echo "$c"; done < <(PATH="$RELPIPE_IN_FILESYSTEM_STREAMLET_PATH" compgen -A command -- "$w0"))) |
60 elif [[ "$w1" == "--streamlet" ]]; then COMPREPLY=($(while read c; do PATH="$RELPIPE_IN_FILESYSTEM_STREAMLET_PATH" type -P "$c" &>/dev/null && echo "$c"; done < <(PATH="$RELPIPE_IN_FILESYSTEM_STREAMLET_PATH" compgen -A command -- "$w0"))) |
60 else |
61 else |
61 OPTIONS=( |
62 OPTIONS=( |
63 "--file" |
64 "--file" |
64 "--xattr" |
65 "--xattr" |
65 "--streamlet" |
66 "--streamlet" |
66 "--as" |
67 "--as" |
67 "--option" |
68 "--option" |
|
69 "--parallel" |
68 ) |
70 ) |
69 COMPREPLY=($(compgen -W "${OPTIONS[*]}" -- "$w0")) |
71 COMPREPLY=($(compgen -W "${OPTIONS[*]}" -- "$w0")) |
70 fi |
72 fi |
71 } |
73 } |
72 |
74 |