Open gunar opened 7 years ago
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...
So it works but it's a bummer that the commands themselves do console.log
s, instead of just propagating errors.
Hmm, good catch, that's a poor design decision. I think a PR propagating the errors to the top level would be really valuable.
Is there a way to use gapps as a JS-library instead of using the CLI? Thank you!