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

make sinopia_exporter usable as a command line script #4

Closed
jmartin-sul opened this issue Aug 1, 2019 · 1 comment · Fixed by #8
Closed

make sinopia_exporter usable as a command line script #4

jmartin-sul opened this issue Aug 1, 2019 · 1 comment · Fixed by #8
Assignees
Labels

Comments

@jmartin-sul
Copy link
Collaborator

jmartin-sul commented Aug 1, 2019

make this functionality usable from the command-line in a single invocation.

spawned from #1

@jmartin-sul jmartin-sul mentioned this issue Aug 1, 2019
@jmartin-sul
Copy link
Collaborator Author

jmartin-sul commented Aug 1, 2019

indeed, having commander wait on a Promise to resolve does not seem straight-forward. since this takes one and only one parameter at the moment (the group name), and doesn't need to prompt, i'm inclined to just do straight-forward manual parsing of the arg array.

if we did need to prompt, here are links to a useful pattern from the sinopia_acl repo:
https://github.com/LD4P/sinopia_acl/blob/04a3a9cbe260a89aaba5aa73505b560a89f25ab5/src/cli/authenticate.js
https://github.com/LD4P/sinopia_acl/blob/cc373f0100d39ec6a32cffb87b1cba381b5597fa/bin/authenticate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant