ctb: make patternX path autocomplete (#1065)

This commit is contained in:
maliakal_d 2024-11-29 15:02:29 +01:00 committed by GitHub
parent dee86c63eb
commit e83527adee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 2 deletions

View File

@ -1505,6 +1505,7 @@ fi
if [[ ${IS_GET} -eq 0 ]]; then if [[ ${IS_GET} -eq 0 ]]; then
if [[ "${cword}" == "2" ]]; then if [[ "${cword}" == "2" ]]; then
FCN_RETURN="" FCN_RETURN=""
IS_PATH=1
fi fi
fi fi
return 0 return 0
@ -1514,6 +1515,7 @@ FCN_RETURN=""
if [[ ${IS_GET} -eq 1 ]]; then if [[ ${IS_GET} -eq 1 ]]; then
if [[ "${cword}" == "2" ]]; then if [[ "${cword}" == "2" ]]; then
FCN_RETURN="" FCN_RETURN=""
IS_PATH=1
fi fi
fi fi
return 0 return 0

View File

@ -1429,6 +1429,7 @@ fi
if [[ ${IS_GET} -eq 0 ]]; then if [[ ${IS_GET} -eq 0 ]]; then
if [[ "${cword}" == "2" ]]; then if [[ "${cword}" == "2" ]]; then
FCN_RETURN="" FCN_RETURN=""
IS_PATH=1
fi fi
fi fi
return 0 return 0
@ -1438,6 +1439,7 @@ FCN_RETURN=""
if [[ ${IS_GET} -eq 1 ]]; then if [[ ${IS_GET} -eq 1 ]]; then
if [[ "${cword}" == "2" ]]; then if [[ "${cword}" == "2" ]]; then
FCN_RETURN="" FCN_RETURN=""
IS_PATH=1
fi fi
fi fi
return 0 return 0

View File

@ -3884,8 +3884,8 @@ patternX:
require_det_id: true require_det_id: true
function: setPattern function: setPattern
input: [ 'args[0]' ] input: [ 'args[0]' ]
arg_types: [special::path]
input_types: [ std::string ] input_types: [ std::string ]
cast_input: [ false ]
output: [ 'args.front()' ] output: [ 'args.front()' ]
patword: patword:

View File

@ -6539,7 +6539,7 @@ patternX:
PUT: PUT:
args: args:
- arg_types: - arg_types:
- std::string - special::path
argc: 1 argc: 1
cast_input: cast_input:
- false - false