gazebosim / gz-fuel-tools

A client library and command line tools for interacting with Gazebo Fuel servers.
https://gazebosim.org
Apache License 2.0
12 stars 20 forks source link

Document how to upload a model from the command line #186

Open diegoferigo opened 3 years ago

diegoferigo commented 3 years ago

I couldn't find a way to upload a model using the ign fuel command line to an organization instead of the personal profile.

The command line tutorial does not cover resource upload, and the example in the main README does not show the possibility to upload the resource to an organization.

Desired behavior

Being able to upload a model to an organization instead of the personal profile.

Implementation suggestion

If it is not currently possible, maybe a new --owner|-o option could be added?

ign fuel upload \
    -m ~/path/to/model/folder \
    --owner <organization> \  # New option?
    -u https://fuel.ignitionrobotics.org/ \
    --header 'Private-Token: <token>'

Alternatives considered

It is possible to do it from the web app, where a drop-down menu is available in the Owner field.

chapulina commented 3 years ago

This was recently added in https://github.com/ignitionrobotics/ign-fuel-tools/pull/179 to Dome.

The command line tutorial does not cover resource upload

It would be good to update the docs.

diegoferigo commented 3 years ago

Ow ok, thanks @chapulina, I missed that PR. I'm currently on Edifice with a colcon setup, and that PR hasn't been forward ported yet. I inspected the code and found no related logic, without thinking to check better the previous PRs. Feel free to close this issue if you don't want to use it as a reminder for the documentation.

chapulina commented 3 years ago

Gotcha. We'll be forward-porting that soon.

I updated this issue to be about the missing documentation.