Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
A quick and dirty Firebase function for discovering what linux commands are available to functions.
var functions = require('firebase-functions');
var exec = require('child_process').exec;
exports.getInfo = functions.https.onRequest((req, res) => {
exec("/bin/bash -c 'compgen -c'", (...args) => {
res.json(args);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment