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

Print SOS link when adding canned public ACL #208

Merged
merged 2 commits into from
Dec 9, 2019

Conversation

chrisglass
Copy link
Contributor

@chrisglass chrisglass commented Dec 6, 2019

In an overwhelming majority of cases, users setting ACLs to
--public-read or --public-read-write will want to share the link to that
ressource via HTTP.

This saves the users a couple of clicks by printing the link to the file
they just uploaded to stdout.

No other canned ACLs are impacted.

Example run:

$ ./exo sos acl add sharing-is-caring blah.jpg --public-read
https://sos-ch-dk-2.exo.io/sharing-is-caring/blah.jpg

In an overwhelming majority of cases, users setting ACLs to
--public-read or --public-read-write will want to share the link to that
ressource via HTTP.

This saves the users a couple of clicks by printing the link to the file
they just uploaded to stdout.

No other canned ACLs are impacted.
@chrisglass chrisglass force-pushed the feat/print-link-after-public-acl-set branch from ecd4d4a to d15b652 Compare December 6, 2019 16:58
Users might want their output quiet, let's respect that.
Copy link
Contributor

@falzm falzm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Copy link
Contributor

@illi-j illi-j left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx @chrisglass !
👍

@chrisglass chrisglass merged commit f4e6cdc into master Dec 9, 2019
@chrisglass chrisglass deleted the feat/print-link-after-public-acl-set branch December 9, 2019 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants