Work on reading command responses

This commit is contained in:
Kovid Goyal
2022-08-22 15:11:00 +05:30
parent 91b15d1a90
commit 3a7d26a3ef
4 changed files with 127 additions and 22 deletions

View File

@@ -178,6 +178,7 @@ def build_go_code(name: str, cmd: RemoteCommand, seq: OptionSpecSeq, template: s
OPTIONS_DECLARATION_CODE='\n'.join(od),
SET_OPTION_VALUES_CODE='\n'.join(ov),
JSON_DECLARATION_CODE='\n'.join(jd),
STRING_RESPONSE_IS_ERROR='true' if cmd.string_return_is_error else 'false',
)
return ans