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

API for gapps (using it programmatically) #44

Open
gunar opened this issue Oct 25, 2016 · 3 comments
Open

API for gapps (using it programmatically) #44

gunar opened this issue Oct 25, 2016 · 3 comments

Comments

@gunar
Copy link

gunar commented Oct 25, 2016

Is there a way to use gapps as a JS-library instead of using the CLI? Thank you!

@gunar
Copy link
Author

gunar commented Oct 25, 2016

I think there's a way to since index.js exports the commands. Perhaps only docs are missing?

module.exports.auth = require('./lib/commands/auth');
module.exports.init = require('./lib/commands/init');
module.exports.upload = require('./lib/commands/upload');
module.exports.defaults = require('./lib/defaults');

I'm investigating further...

@gunar
Copy link
Author

gunar commented Oct 25, 2016

So it works but it's a bummer that the commands themselves do console.logs, instead of just propagating errors.

@shrugs
Copy link
Contributor

shrugs commented Feb 15, 2017

Hmm, good catch, that's a poor design decision. I think a PR propagating the errors to the top level would be really valuable.

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

No branches or pull requests

3 participants