mirror of
https://github.com/aljazceru/cyphernode.git
synced 2025-12-29 10:35:21 +01:00
added trim filters to all inputs to avoid leading and trailing spaces
This commit is contained in:
@@ -41,6 +41,7 @@ module.exports = {
|
||||
name: 'xpub',
|
||||
default: utils._getDefault( 'xpub' ),
|
||||
message: prefix()+'What is your xpub to watch?'+'\n',
|
||||
filter: utils._trimFilter,
|
||||
validate: utils._xkeyValidator
|
||||
},
|
||||
{
|
||||
@@ -48,6 +49,7 @@ module.exports = {
|
||||
name: 'derivation_path',
|
||||
default: utils._getDefault( 'derivation_path' ),
|
||||
message: prefix()+'What is your address derivation path?'+'\n',
|
||||
filter: utils._trimFilter,
|
||||
validate: utils._derivationPathValidator
|
||||
}];
|
||||
},
|
||||
|
||||
@@ -45,6 +45,7 @@ module.exports = {
|
||||
type: 'input',
|
||||
name: 'bitcoin_node_ip',
|
||||
default: utils._getDefault( 'bitcoin_node_ip' ),
|
||||
filter: utils._trimFilter,
|
||||
validate: utils._ipOrFQDNValidator,
|
||||
message: prefix()+'What is your full node ip address?'+'\n',
|
||||
},
|
||||
@@ -53,12 +54,14 @@ module.exports = {
|
||||
name: 'bitcoin_rpcuser',
|
||||
default: utils._getDefault( 'bitcoin_rpcuser' ),
|
||||
message: prefix()+'Name of bitcoin rpc user?'+'\n',
|
||||
filter: utils._trimFilter,
|
||||
},
|
||||
{
|
||||
type: 'password',
|
||||
name: 'bitcoin_rpcpassword',
|
||||
default: utils._getDefault( 'bitcoin_rpcpassword' ),
|
||||
message: prefix()+'Password of bitcoin rpc user?'+'\n',
|
||||
filter: utils._trimFilter,
|
||||
},
|
||||
{
|
||||
when: bitcoinInternal,
|
||||
@@ -73,6 +76,7 @@ module.exports = {
|
||||
name: 'bitcoin_uacomment',
|
||||
default: utils._getDefault( 'bitcoin_uacomment' ),
|
||||
message: prefix()+'Any UA comment?'+'\n',
|
||||
filter: utils._trimFilter,
|
||||
validate: utils._UACommentValidator
|
||||
}];
|
||||
},
|
||||
|
||||
@@ -49,6 +49,7 @@ module.exports = {
|
||||
type: 'input',
|
||||
name: 'lightning_external_ip',
|
||||
default: utils._getDefault( 'lightning_external_ip' ),
|
||||
filter: utils._trimFilter,
|
||||
validate: utils._ipOrFQDNValidator,
|
||||
message: prefix()+'What external ip does your lightning node have?'+'\n',
|
||||
},
|
||||
@@ -57,6 +58,7 @@ module.exports = {
|
||||
type: 'input',
|
||||
name: 'lightning_nodename',
|
||||
default: utils._getDefault( 'lightning_nodename' ),
|
||||
filter: utils._trimFilter,
|
||||
validate: utils._notEmptyValidator,
|
||||
message: prefix()+'What name has your lightning node?'+'\n',
|
||||
},
|
||||
@@ -65,6 +67,7 @@ module.exports = {
|
||||
type: 'input',
|
||||
name: 'lightning_nodecolor',
|
||||
default: utils._getDefault( 'lightning_nodecolor' ),
|
||||
filter: utils._trimFilter,
|
||||
validate: utils._colorValidator,
|
||||
message: prefix()+'What color has your lightning node?'+'\n',
|
||||
}];
|
||||
|
||||
@@ -43,6 +43,7 @@ module.exports = {
|
||||
type: 'input',
|
||||
name: 'proxy_datapath',
|
||||
default: utils._getDefault( 'proxy_datapath' ),
|
||||
filter: utils._trimFilter,
|
||||
validate: utils._pathValidator,
|
||||
message: prefix()+'Where to store your proxy db?'+'\n',
|
||||
},
|
||||
@@ -51,6 +52,7 @@ module.exports = {
|
||||
type: 'input',
|
||||
name: 'bitcoin_datapath',
|
||||
default: utils._getDefault( 'bitcoin_datapath' ),
|
||||
filter: utils._trimFilter,
|
||||
validate: utils._pathValidator,
|
||||
message: prefix()+'Where is your blockchain data?'+'\n',
|
||||
},
|
||||
@@ -59,6 +61,7 @@ module.exports = {
|
||||
type: 'input',
|
||||
name: 'lightning_datapath',
|
||||
default: utils._getDefault( 'lightning_datapath' ),
|
||||
filter: utils._trimFilter,
|
||||
validate: utils._pathValidator,
|
||||
message: prefix()+'Where is your lightning node data?'+'\n',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user