Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Add a CLI client command.
This is for decoupling third party Mozc clients such as uim and Fcitx5.
Mozc doesn't provide a client library. So third party Mozc clients can't be implemented without bundling Mozc. If we provide a CLI client command, third party Mozc clients can be implemented out of Mozc source.
This just:
This may convert the protobuf binary format to/from something such as JSON Lines. This PoC just implements JSON Lines input/output. (No the protobuf binary format support.)
mozc_emacs_helper manages a client pool but this doesn't manage a client pool. If users need it, they must spawn multiple mozc_client_cli processes by themselves.
If there is any input error, mozc_client_cli exits with non-0 (1 in this implementation). Users can get error message from stderr.
Issue IDs
#1362 (comment) as a related discussion.
Steps to test new behaviors (if any)
A clear and concise description about how to verify new behaviors (if any).
bazelisk build package --config oss_linux --config release_buildbazel-bin/unix/cli/mozc_client_climozc.commands.Inputas JSON Lines to stdinExample:
Additional context
This is just a PoC to discuss this direction.