mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 09:53:21 +02:00
Ported CLI from commander to yargs because yargs suits our large CLI better and is easier to develop with. Split commands into separate files since the file was getting annoyingly long.
This commit is contained in:
@@ -81,10 +81,10 @@ srv.resolve = function(domain) {
|
||||
var parsedUrl = url.parse(domain)
|
||||
|
||||
if (!parsedUrl.protocol) {
|
||||
return Promise.reject(new Error(
|
||||
return Promise.reject(new Error(util.format(
|
||||
'Must include protocol in "%s"'
|
||||
, domain
|
||||
))
|
||||
)))
|
||||
}
|
||||
|
||||
if (/^srv\+/.test(parsedUrl.protocol)) {
|
||||
|
||||
Reference in New Issue
Block a user