RPS-10166 Job strings#111
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a new set of CLI commands under smartling-cli jobs strings to add, remove, and list strings on translation jobs, complete with service logic, tests, and documentation. Feedback on the changes suggests initializing the Items slice in ListOutput with make to ensure it marshals to an empty JSON array [] instead of null when empty. Additionally, it is recommended to mark the --hashcode flag as required in Cobra for both the add and remove commands to enable early validation during CLI parsing.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Manage the strings on a translation job from the CLI.
Usage
add/removereport the API'ssuccessCount/failCount; when nothing is affected (e.g. bad hashcodes) the output says 0 succeeded with a hint to verify the hashcodes exist.listrenders a TARGET LOCALE ID/HASHCODE table and showsShowing N of <totalCount>;--output simple|json|table.Smartling/api-sdk-go#35