definelist has no put

This commit is contained in:
2025-10-13 11:04:02 +02:00
parent 98ecbe954d
commit d6f8ff09d0
5 changed files with 18 additions and 17 deletions

View File

@@ -712,6 +712,11 @@ if [[ "${cword}" == "2" ]]; then
FCN_RETURN=""
fi
fi
if [[ ${IS_GET} -eq 0 ]]; then
if [[ "${cword}" == "2" ]]; then
FCN_RETURN=""
fi
fi
return 0
}
__delay() {

View File

@@ -636,6 +636,11 @@ if [[ "${cword}" == "2" ]]; then
FCN_RETURN=""
fi
fi
if [[ ${IS_GET} -eq 0 ]]; then
if [[ "${cword}" == "2" ]]; then
FCN_RETURN=""
fi
fi
return 0
}
__delay() {

View File

@@ -2778,8 +2778,6 @@ definelist:
GET:
argc: 1
arg_types: [ std::string ]
PUT:
argc: -1
reg:
is_description: true

View File

@@ -2517,19 +2517,6 @@ definelist:
output: []
require_det_id: false
store_result_in_t: true
PUT:
args:
- arg_types: []
argc: -1
cast_input: []
check_det_id: false
convert_det_id: true
function: ''
input: []
input_types: []
output: []
require_det_id: false
store_result_in_t: false
command_name: definelist
function_alias: definelist
help: ''

View File

@@ -806,8 +806,14 @@ int InferAction::define() {
int InferAction::definelist() {
throw RuntimeError("sls_detector is disabled for command: definelist. Use "
"sls_detector_get or sls_detector_put");
if (args.size() == 1) {
return slsDetectorDefs::GET_ACTION;
}
else {
throw RuntimeError("Could not infer action: Wrong number of arguments");
}
}
int InferAction::delay() {