mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-01 09:01:19 +01:00
definelist has no put
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -2778,8 +2778,6 @@ definelist:
|
||||
GET:
|
||||
argc: 1
|
||||
arg_types: [ std::string ]
|
||||
PUT:
|
||||
argc: -1
|
||||
|
||||
reg:
|
||||
is_description: true
|
||||
|
||||
@@ -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: ''
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user