@@ -63,10 +63,8 @@ export class NodeCommand extends BaseCommand {
63
63
64
64
static get SETUP_FLAGS_LIST ( ) {
65
65
return [
66
- flags . app ,
67
66
flags . appConfig ,
68
67
flags . cacheDir ,
69
- flags . chainId ,
70
68
flags . devMode ,
71
69
flags . force ,
72
70
flags . generateGossipKeys ,
@@ -100,7 +98,6 @@ export class NodeCommand extends BaseCommand {
100
98
101
99
static get REFRESH_FLAGS_LIST ( ) {
102
100
return [
103
- flags . app ,
104
101
flags . cacheDir ,
105
102
flags . devMode ,
106
103
flags . force ,
@@ -117,6 +114,7 @@ export class NodeCommand extends BaseCommand {
117
114
118
115
static get ADD_FLAGS_LIST ( ) {
119
116
return [
117
+ flags . app ,
120
118
flags . cacheDir ,
121
119
flags . chainId ,
122
120
flags . chartDirectory ,
@@ -412,7 +410,6 @@ export class NodeCommand extends BaseCommand {
412
410
413
411
async initializeSetup ( config , configManager , k8 ) {
414
412
// compute other config parameters
415
- config . releasePrefix = Templates . prepareReleasePrefix ( config . releaseTag )
416
413
config . keysDir = path . join ( validatePath ( config . cacheDir ) , 'keys' )
417
414
config . stagingDir = Templates . renderStagingDir (
418
415
configManager . getFlag ( flags . cacheDir ) ,
@@ -518,7 +515,6 @@ export class NodeCommand extends BaseCommand {
518
515
519
516
// disable the prompts that we don't want to prompt the user for
520
517
prompts . disablePrompts ( [
521
- flags . app ,
522
518
flags . appConfig ,
523
519
flags . devMode ,
524
520
flags . force ,
@@ -533,7 +529,6 @@ export class NodeCommand extends BaseCommand {
533
529
* @property {string } app
534
530
* @property {string } appConfig
535
531
* @property {string } cacheDir
536
- * @property {string } chainId
537
532
* @property {boolean } devMode
538
533
* @property {boolean } force
539
534
* @property {boolean } generateGossipKeys
@@ -548,7 +543,6 @@ export class NodeCommand extends BaseCommand {
548
543
* @property {string } keysDir
549
544
* @property {string[] } nodeIds
550
545
* @property {string[] } podNames
551
- * @property {string } releasePrefix
552
546
* @property {string } stagingDir
553
547
* @property {string } stagingKeysDir
554
548
* -- methods --
@@ -566,7 +560,6 @@ export class NodeCommand extends BaseCommand {
566
560
'keysDir' ,
567
561
'nodeIds' ,
568
562
'podNames' ,
569
- 'releasePrefix' ,
570
563
'stagingDir' ,
571
564
'stagingKeysDir'
572
565
] )
@@ -805,7 +798,7 @@ export class NodeCommand extends BaseCommand {
805
798
}
806
799
} )
807
800
} ,
808
- skip : ( ctx , _ ) => self . configManager . getFlag ( flags . app ) !== ''
801
+ skip : ( ctx , _ ) => self . configManager . getFlag ( flags . app ) !== '' && self . configManager . getFlag ( flags . app ) !== constants . HEDERA_APP_NAME
809
802
} ] , {
810
803
concurrent : false ,
811
804
rendererOptions : constants . LISTR_DEFAULT_RENDERER_OPTION
@@ -1003,7 +996,6 @@ export class NodeCommand extends BaseCommand {
1003
996
self . configManager . update ( argv )
1004
997
// disable the prompts that we don't want to prompt the user for
1005
998
prompts . disablePrompts ( [
1006
- flags . app ,
1007
999
flags . devMode ,
1008
1000
flags . force
1009
1001
] )
@@ -1013,7 +1005,6 @@ export class NodeCommand extends BaseCommand {
1013
1005
/**
1014
1006
* @typedef {Object } NodeRefreshConfigClass
1015
1007
* -- flags --
1016
- * @property {string } app
1017
1008
* @property {string } cacheDir
1018
1009
* @property {boolean } devMode
1019
1010
* @property {boolean } force
@@ -1025,7 +1016,6 @@ export class NodeCommand extends BaseCommand {
1025
1016
* @property {string } keysDir
1026
1017
* @property {string[] } nodeIds
1027
1018
* @property {Object } podNames
1028
- * @property {string } releasePrefix
1029
1019
* @property {string } stagingDir
1030
1020
* @property {string } stagingKeysDir
1031
1021
* -- methods --
@@ -1042,7 +1032,6 @@ export class NodeCommand extends BaseCommand {
1042
1032
'keysDir' ,
1043
1033
'nodeIds' ,
1044
1034
'podNames' ,
1045
- 'releasePrefix' ,
1046
1035
'stagingDir' ,
1047
1036
'stagingKeysDir'
1048
1037
] )
@@ -1258,6 +1247,8 @@ export class NodeCommand extends BaseCommand {
1258
1247
1259
1248
// disable the prompts that we don't want to prompt the user for
1260
1249
prompts . disablePrompts ( [
1250
+ flags . app ,
1251
+ flags . chainId ,
1261
1252
flags . chartDirectory ,
1262
1253
flags . devMode ,
1263
1254
flags . force ,
@@ -1269,6 +1260,7 @@ export class NodeCommand extends BaseCommand {
1269
1260
/**
1270
1261
* @typedef {Object } NodeAddConfigClass
1271
1262
* -- flags --
1263
+ * @property {string } app
1272
1264
* @property {string } cacheDir
1273
1265
* @property {string } chainId
1274
1266
* @property {string } chartDirectory
@@ -1288,7 +1280,6 @@ export class NodeCommand extends BaseCommand {
1288
1280
* @property {string } keysDir
1289
1281
* @property {string[] } nodeIds
1290
1282
* @property {Object } podNames
1291
- * @property {string } releasePrefix
1292
1283
* @property {Map<String, NetworkNodeServices> } serviceMap
1293
1284
* @property {string } stagingDir
1294
1285
* @property {string } stagingKeysDir
@@ -1309,7 +1300,6 @@ export class NodeCommand extends BaseCommand {
1309
1300
'keysDir' ,
1310
1301
'nodeIds' ,
1311
1302
'podNames' ,
1312
- 'releasePrefix' ,
1313
1303
'serviceMap' ,
1314
1304
'stagingDir' ,
1315
1305
'stagingKeysDir'
@@ -1747,6 +1737,7 @@ export class NodeCommand extends BaseCommand {
1747
1737
command : 'start' ,
1748
1738
desc : 'Start a node' ,
1749
1739
builder : y => flags . setCommandFlags ( y ,
1740
+ flags . app ,
1750
1741
flags . namespace ,
1751
1742
flags . nodeIDs
1752
1743
) ,
0 commit comments