From b2633b07306321d4d87497fbbfbc558b475bec28 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Thu, 28 Nov 2024 17:33:27 +0100 Subject: [PATCH] ctb: make patternX path autocomplete --- slsDetectorSoftware/generator/autocomplete/bash_autocomplete.sh | 2 ++ slsDetectorSoftware/generator/autocomplete/zsh_autocomplete.sh | 2 ++ slsDetectorSoftware/generator/commands.yaml | 2 +- slsDetectorSoftware/generator/extended_commands.yaml | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/slsDetectorSoftware/generator/autocomplete/bash_autocomplete.sh b/slsDetectorSoftware/generator/autocomplete/bash_autocomplete.sh index 2da4347ed6..f4ac7c1076 100644 --- a/slsDetectorSoftware/generator/autocomplete/bash_autocomplete.sh +++ b/slsDetectorSoftware/generator/autocomplete/bash_autocomplete.sh @@ -1505,6 +1505,7 @@ fi if [[ ${IS_GET} -eq 0 ]]; then if [[ "${cword}" == "2" ]]; then FCN_RETURN="" +IS_PATH=1 fi fi return 0 @@ -1514,6 +1515,7 @@ FCN_RETURN="" if [[ ${IS_GET} -eq 1 ]]; then if [[ "${cword}" == "2" ]]; then FCN_RETURN="" +IS_PATH=1 fi fi return 0 diff --git a/slsDetectorSoftware/generator/autocomplete/zsh_autocomplete.sh b/slsDetectorSoftware/generator/autocomplete/zsh_autocomplete.sh index c4c36afe75..3131081679 100644 --- a/slsDetectorSoftware/generator/autocomplete/zsh_autocomplete.sh +++ b/slsDetectorSoftware/generator/autocomplete/zsh_autocomplete.sh @@ -1429,6 +1429,7 @@ fi if [[ ${IS_GET} -eq 0 ]]; then if [[ "${cword}" == "2" ]]; then FCN_RETURN="" +IS_PATH=1 fi fi return 0 @@ -1438,6 +1439,7 @@ FCN_RETURN="" if [[ ${IS_GET} -eq 1 ]]; then if [[ "${cword}" == "2" ]]; then FCN_RETURN="" +IS_PATH=1 fi fi return 0 diff --git a/slsDetectorSoftware/generator/commands.yaml b/slsDetectorSoftware/generator/commands.yaml index 4d8ac35865..a31d5ac735 100644 --- a/slsDetectorSoftware/generator/commands.yaml +++ b/slsDetectorSoftware/generator/commands.yaml @@ -3884,8 +3884,8 @@ patternX: require_det_id: true function: setPattern input: [ 'args[0]' ] + arg_types: [special::path] input_types: [ std::string ] - cast_input: [ false ] output: [ 'args.front()' ] patword: diff --git a/slsDetectorSoftware/generator/extended_commands.yaml b/slsDetectorSoftware/generator/extended_commands.yaml index 6702c6a127..65499d2f96 100644 --- a/slsDetectorSoftware/generator/extended_commands.yaml +++ b/slsDetectorSoftware/generator/extended_commands.yaml @@ -6539,7 +6539,7 @@ patternX: PUT: args: - arg_types: - - std::string + - special::path argc: 1 cast_input: - false