mirror of
https://github.com/status-im/status-dev-cli.git
synced 2026-08-27 11:31:12 +00:00
Custom botUrl (3.2.7)
This commit is contained in:
@@ -74,9 +74,10 @@ function getCurrentPackageData() {
|
||||
var json = JSON.parse(fs.readFileSync(process.cwd() + '/package.json', 'utf8'));
|
||||
obj["name"] = json.name;
|
||||
obj["whisper-identity"] = "dapp-" + fromAscii(json.name);
|
||||
obj["dapp-url"] = json["dapp-url"] || cli.dappUrl;
|
||||
obj["bot-url"] = json["bot-url"] || cli.botUrl;
|
||||
|
||||
obj["dapp-url"] = json["dapp-url"] || json["bot-url"] || cli.dappUrl;
|
||||
if (!obj["dapp-url"]) {
|
||||
if (!obj["dapp-url"] && !obj["bot-url"]) {
|
||||
console.error(chalk.red("Neither 'dapp-url' nor 'bot-url' have been found in your package.json file."));
|
||||
return null;
|
||||
}
|
||||
@@ -306,4 +307,5 @@ cli.on("*", function(command) {
|
||||
cli.version(pkgJson.version)
|
||||
.option("--ip [ip]", "IP address of your device")
|
||||
.option("--dappUrl [url]", "Custom DApp URL (overrides the one from the package.json)")
|
||||
.option("--botUrl [url]", "Custom bot URL (overrides the one from the package.json)")
|
||||
.parse(process.argv);
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "status-dev-cli",
|
||||
"version": "3.2.5",
|
||||
"version": "3.2.7",
|
||||
"description": "CLI for Status",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
|
||||
Reference in New Issue
Block a user