-
Notifications
You must be signed in to change notification settings - Fork 32
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
ocrd network
CLI syntax and terminology
#1032
Comments
Thank you @kba! I have decided even against the |
ocrd network
CLI syntaxocrd network
CLI syntax and terminology
Some updates to this topic that are based on the current state of #1030. Network modules/agents based on the WebAPI spec:
How are the network modules started, steps with example usage:
How is the client supposed to be used? There is no clear agreement yet, so consider everything that follows as my initial naive ideas! Before continuing with the Client CLI implementation, we need to decide what to support and what arguments/options to provide. Currently, as part of #1030, only the Then the processing status of a job can be checked with: Similar to the example above, the client can support: To keep the client CLI usage simple, the addresses of the servers can be configurated through environment variables. That's all from my side for now. |
Regarding the command line client, IMO it should be as consistent with the existing CLIs as possible. And I would prefer names of operations instead of HTTP mnemonics (POST/GET/PUT), for example:
So no |
Agree. I am also not a big fan of the HTTP mnemonics for the CLI. Worth noting that the |
Yes, but adding user management like fastapi-users should not be difficult, IMO this is out of scope for core. |
@MehmedGIT we currently have the (Background: @joschrew in OCR-D/ocrd_all#386 started implementing the ocrd_all-based deployment with docker compose for servers and the client CLIs – currently for the Processing Server model only. For the Processor Server model it would not make sense to use the Processing Server at all, but we have no client CLI yet.) |
It would be rather that to allow both ways.
Right, the client CLI should be extended to support that. |
From #974 (comment)
@MehmedGIT:
The text was updated successfully, but these errors were encountered: