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

keys command should accept keys from standard input #11

Open
dmolesUC opened this issue Feb 5, 2019 · 0 comments
Open

keys command should accept keys from standard input #11

dmolesUC opened this issue Feb 5, 2019 · 0 comments

Comments

@dmolesUC
Copy link
Owner

dmolesUC commented Feb 5, 2019

Passing - as a file argument should read keys from standard input, e.g.

cat mykeylist.txt | cos keys s3://uc3-s3mrt5001-stg/ \
  -e https://s3-us-west-2.amazonaws.com/ \
  --file -

If we want to do this right, we should probably put KeyList take a passed-in function and iterate over its own keys rather than having it expose a []string. This poses problems for KeyList.Count, but we don't use KeyList.Count much except for documentation and for final output.

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

No branches or pull requests

1 participant