@kearisp/cli
Advanced tools
Comparing version 2.0.6-dev.1 to 2.0.6-dev.2
@@ -22,7 +22,18 @@ "use strict"; | ||
COMPREPLY=() | ||
STR=$(compgen -W "\${OPTIONS}" -- "$cur") | ||
if [[ $STR = '__WOCKER_PATH__' ]]; then | ||
COMPREPLY=($(compgen -f -d -- "$cur")) | ||
if [[ $OPTIONS = '__WOCKER_PATH__' ]]; then | ||
local files_and_dirs=($(compgen -f -d -- "$cur")) | ||
for path in "\${files_and_dirs[@]}"; do | ||
if [[ -d "$path" ]]; then | ||
COMPREPLY+=("\${path}/") | ||
else | ||
COMPREPLY+=("$path") | ||
fi | ||
done | ||
compopt -o nospace | ||
else | ||
STR=$(compgen -W "\${OPTIONS}" -- "$cur") | ||
while IFS= read -r line; do | ||
@@ -29,0 +40,0 @@ if [[ $cur != \\'* && $cur != \\"* ]]; then |
{ | ||
"name": "@kearisp/cli", | ||
"version": "2.0.6-dev.1", | ||
"version": "2.0.6-dev.2", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": "Kris Papercut <krispcut@gmail.com>", |
45851
1138