@@ -6,15 +6,21 @@ const staticDir = process.env.BUILD_TYPE === 'ELECTRON' && process['resourcesPat
6
6
? join ( process [ 'resourcesPath' ] , 'static' )
7
7
: join ( __dirname , '..' , 'static' ) ;
8
8
9
+ const defaultsDir = process . env . BUILD_TYPE === 'ELECTRON' && process [ 'resourcesPath' ]
10
+ ? join ( process [ 'resourcesPath' ] , 'defaults' )
11
+ : join ( __dirname , '..' , 'defaults' ) ;
12
+
9
13
export default {
10
14
dir_path : {
11
15
homedir,
12
16
staticDir,
17
+ defaultsDir,
13
18
logs : join ( homedir , 'logs' ) ,
14
19
defaultPlugins : join ( staticDir , 'plugins' ) ,
15
20
customPlugins : join ( homedir , 'plugins' ) ,
16
21
pluginsAssets : join ( staticDir , 'resources' , 'plugins' ) ,
17
22
commands : join ( homedir , 'commands' ) ,
23
+ defaultCommandsDir : join ( defaultsDir , 'commands' ) ,
18
24
caCertificates : join ( homedir , 'ca_certificates' ) ,
19
25
clientCertificates : join ( homedir , 'client_certificates' ) ,
20
26
} ,
@@ -72,18 +78,36 @@ export default {
72
78
omitSensitiveData : process . env . LOGGER_OMIT_DATA ? process . env . LOGGER_OMIT_DATA === 'true' : true ,
73
79
pipelineSummaryLimit : parseInt ( process . env . LOGGER_PIPELINE_SUMMARY_LIMIT , 10 ) || 5 ,
74
80
} ,
75
- commands : {
76
- mainUrl : process . env . COMMANDS_MAIN_URL
77
- || 'https://raw.githubusercontent.com/redis/redis-doc/master/commands.json' ,
78
- redisearchUrl : process . env . COMMANDS_REDISEARCH_URL
79
- || 'https://raw.githubusercontent.com/RediSearch/RediSearch/master/commands.json' ,
80
- redijsonUrl : process . env . COMMANDS_REDIJSON_URL
81
- || 'https://raw.githubusercontent.com/RedisJSON/RedisJSON/master/commands.json' ,
82
- redistimeseriesUrl : process . env . COMMANDS_REDISTIMESERIES_URL
83
- || 'https://raw.githubusercontent.com/RedisTimeSeries/RedisTimeSeries/master/commands.json' ,
84
- redisaiUrl : process . env . COMMANDS_REDISAI_URL
85
- || 'https://raw.githubusercontent.com/RedisAI/RedisAI/master/commands.json' ,
86
- redisgraphUrl : process . env . COMMANDS_REDISGRAPH_URL
87
- || 'https://raw.githubusercontent.com/RedisGraph/RedisGraph/master/commands.json' ,
88
- } ,
81
+ commands : [
82
+ {
83
+ name : 'main' ,
84
+ url : process . env . COMMANDS_MAIN_URL
85
+ || 'https://raw.githubusercontent.com/redis/redis-doc/master/commands.json' ,
86
+ } ,
87
+ {
88
+ name : 'redisearch' ,
89
+ url : process . env . COMMANDS_REDISEARCH_URL
90
+ || 'https://raw.githubusercontent.com/RediSearch/RediSearch/master/commands.json' ,
91
+ } ,
92
+ {
93
+ name : 'redijson' ,
94
+ url : process . env . COMMANDS_REDIJSON_URL
95
+ || 'https://raw.githubusercontent.com/RedisJSON/RedisJSON/master/commands.json' ,
96
+ } ,
97
+ {
98
+ name : 'redistimeseries' ,
99
+ url : process . env . COMMANDS_REDISTIMESERIES_URL
100
+ || 'https://raw.githubusercontent.com/RedisTimeSeries/RedisTimeSeries/master/commands.json' ,
101
+ } ,
102
+ {
103
+ name : 'redisai' ,
104
+ url : process . env . COMMANDS_REDISAI_URL
105
+ || 'https://raw.githubusercontent.com/RedisAI/RedisAI/master/commands.json' ,
106
+ } ,
107
+ {
108
+ name : 'redisgraph' ,
109
+ url : process . env . COMMANDS_REDISGRAPH_URL
110
+ || 'https://raw.githubusercontent.com/RedisGraph/RedisGraph/master/commands.json' ,
111
+ } ,
112
+ ] ,
89
113
} ;
0 commit comments