Generate client
For now we haven't generated the client for ctadiracx extension but the we just copied the _generated folder from the lhcbdiracx project:
(and adapted source files in : https://gitlab.cta-observatory.org/cta-computing/dpps/workload/ctadiracx/-/tree/main/ctadiracx-client/src/ctadiracx/client?ref_type=heads)
This makes the client working (i.e. dirac commands are available), but we should be able to generate (and regenerate) the client ourselves.
I've added to the pixi.toml the environment and the task to regenerate the client (as done in lhcbdiracx). It just needs to run :
pixi run generate-client
However currently it does not work, most likely because we haven't generated the client correctly the first time and we get the error attached here : generate_client.log
Note also that this command regenerates the client assuming that the client was already generated a first time (meaning that the _generated folder is already filled) and it checks if the generated client is compatible with the OpenAPI specifications.
See also doc here: https://github.com/DIRACGrid/diracx/blob/main/docs/dev/explanations/client.md
DiracX people promised a documentation about all this in a few days.
current project the client