You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would make the CLI much more convenient - just install and run which-cloud on the host!
Not quite sure how this would be best represented in the API - perhaps just accept a callback as the first-and-only argument? That would be nicer than forcing a module to pass a falsy IP value, but slightly complicates the implementation, particularly if it ever accepts separate opts too.
I could imagine all of these being valid:
// callbackwhichCloud(ip,opts,cb)whichCloud(null,opts,cb)// do ip lookupwhichCloud(ip,cb)whichCloud(cb)// do ip lookup// promisewhichCloud(ip,opts).then(c=>{})whichCloud(null,opts).then(c=>{})// do ip lookupwhichCloud(ip).then(c=>{})whichCloud().then(c=>{})// do ip lookup
But we could, of course, just use another function for the "do IP lookup" option:
The text was updated successfully, but these errors were encountered:
nexdrew
changed the title
Consider looking up the public IP of the host system if not provided
Consider looking up the public IP of the host system if no IP given
Jun 10, 2016
Could use Sindre's
public-ip
module.This would make the CLI much more convenient - just install and run
which-cloud
on the host!Not quite sure how this would be best represented in the API - perhaps just accept a callback as the first-and-only argument? That would be nicer than forcing a module to pass a falsy IP value, but slightly complicates the implementation, particularly if it ever accepts separate
opts
too.I could imagine all of these being valid:
But we could, of course, just use another function for the "do IP lookup" option:
The text was updated successfully, but these errors were encountered: