Skip to content
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

Adding support for printing only the ID of uploaded data/jobs #72

Merged
merged 8 commits into from Jan 2, 2020

Conversation

@brimoor
Copy link
Contributor

brimoor commented Dec 31, 2019

Before:

$ voxel51 data upload test.mp4
Uploading data 'test.mp4'

id                                    path
------------------------------------  --------
42528a1c-7142-4bc8-9415-8f5164ac6b70  test.mp4

Now (if desired):

$ voxel51 data upload --print-id test.mp4
42528a1c-7142-4bc8-9415-8f5164ac6b70

voxel51 jobs upload --print-id was also added.

voxel51 analytics upload --print-id already exists, so now all three are covered.

This feature is useful in workflows where one wants to use the ID of a created item in another command. For example:

JOB_ID=$(voxel51 jobs upload --print-id --name test request.json)
voxel51 jobs start ${JOB_ID}
@brimoor brimoor added the feature label Dec 31, 2019
@brimoor brimoor self-assigned this Dec 31, 2019
Copy link
Contributor

MikeJeffers left a comment

Works like a charm

@brimoor

This comment has been minimized.

Copy link
Contributor Author

brimoor commented Jan 2, 2020

Very ID. Much charm

@brimoor brimoor merged commit 2138248 into develop Jan 2, 2020
@brimoor brimoor deleted the print-id branch Jan 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.