Open bmbouter opened 2 years ago
Some notes on how to implement this, if anyone wants to give it a shot:
client.exec_container_script("my_script.sh")
(https://github.com/pulp/oci_env/blob/main/client/oci_env/utils.py#L276) (example: https://github.com/pulp/oci_env/blob/main/client/oci_env/commands.py#L81)I would recommend creating a oci-env docs
subcommand. I don't know enough about how docs work in pulp to make recommendations how how this command should work other than it might be a good idea to follow the patterns for the oci-env test
command.
Possible usage for the docs
subcommmand:
# Install the doc dependencies for PLUGIN_NAME and run COMMAND for that plugin's makefile
oci-env docs -i -p PLUGIN_NAME COMMAND
# Run COMMAND for that PLUGIN_NAME's docs makefile without installing docs dependencies
oci-env docs -p PLUGIN_NAME COMMAND
Right now you can build docs with:
It would be great if:
make
would be ideal)