Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: add RPCServer commands #99

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

utnapischtim
Copy link
Contributor

@utnapischtim utnapischtim commented Feb 27, 2025

how to use

to use it start the rpc server by

invenio rpc-server start

send to the rpc-server by:

rpc-server send webpack create

what is working:

  • rpc-server send webpack clean no parameters
  • rpc-server send collect --verbose flag parameters
  • rpc-server send access allow-action-for-role --action superuser-access --role administration parameters
  • rpc-server send access allow administration-moderation role administration-moderation chained calls

invenio-cli

  • invenio-cli has to start the rpc-server within the .venv of my-site. e.g uv run invenio rpc-server start, naturally this has to be started in the background. maybe with a customizable host:port configuration, to have multiple invenio rpc-servers arround
  • to be used it should be enough to do something like uv run rpc-server send webpack create. rpc-server does not start a flask-app and should be fast.
  • should the rpc-server be started in a separate shell to provide the error log?
  • should invenio-cli start the server on every call? (performance wise, NOT)

open TODO's

  • make host:port configurable!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant