Conversation
|
|
||
| # Poll the task (here we use a function defined in docs/_scripts/base.sh) | ||
| wait_until_task_finished $BASE_ADDR$TASK_URL | ||
| pulp python repository add --name foo --filename "shelf-reader-0.1.tar.gz" |
There was a problem hiding this comment.
This is a little unintuitive, we're saying repository add --name foo but it's not creating a repository, it's adding content to a repository.
Does a reverse order work? pulp python repository --foo add --filename "shelf-reader-0.1.tar.gz"
Or maybe the names could be changed slightly?
pulp python repository add-content --repo-name foo --filename "shelf-reader-0.1.tar.gz"
There was a problem hiding this comment.
We discussed a schema, where you specified the repository to work on before the action to do.
Think: pulp file repository --name "foo" update --description "bar"
We termed it the "interspersed args design" and folks said, it was unintuitive. So we moved all the args to the end.
If you look at the recently merged PR about "nested lookup options" this might be a way to call them --repository and alternatively --repository-href.
0f4b98c to
317fc96
Compare
| @@ -1,12 +1,6 @@ | |||
| # Get a Python package or choose your own | |||
| curl -O https://repos.fedorapeople.org/pulp/pulp/fixtures/python-pypi/packages/shelf-reader-0.1.tar.gz | |||
| curl -O https://fixtures.pulpproject.org/python-pypi/packages/shelf-reader-0.1.tar.gz | |||
|
@mdellweg Do you want to review this separately or am we good to merge? |
fixes: #8364
https://pulp.plan.io/issues/8364
Pulp CLI next release should contain Pulp Python support, so updating these docs early to be contained in next release, hopefully later this week. The CLI has almost full coverage of the REST API (missing from_bandersnatch endpoint) for the Python plugin, so I want to get people using it ASAP, especially since we've been getting a lot of interest lately.