@@ -32,6 +32,8 @@ var siaHandler = require('./sia.js');
32
32
33
33
var nearHandler = require ( './near.js' ) ;
34
34
35
+ var tellorHandler = require ( './tellor.js' ) ;
36
+
35
37
function builder ( yargs ) {
36
38
return yargs . positional ( 'plugin' , {
37
39
alias : 'p' ,
@@ -76,7 +78,7 @@ function _handler() {
76
78
77
79
case 8 :
78
80
_context . t0 = plugin ;
79
- _context . next = _context . t0 === 'bluzelle' ? 11 : _context . t0 === 'nkn' ? 18 : _context . t0 === 'noia' ? 25 : _context . t0 === 'icon' ? 32 : _context . t0 === 'orbit' ? 39 : _context . t0 === 'arweave' ? 46 : _context . t0 === 'band' ? 53 : _context . t0 === 'fluence' ? 60 : _context . t0 === 'sia' ? 67 : _context . t0 === 'near' ? 74 : 81 ;
81
+ _context . next = _context . t0 === 'bluzelle' ? 11 : _context . t0 === 'nkn' ? 18 : _context . t0 === 'noia' ? 25 : _context . t0 === 'icon' ? 32 : _context . t0 === 'orbit' ? 39 : _context . t0 === 'arweave' ? 46 : _context . t0 === 'band' ? 53 : _context . t0 === 'fluence' ? 60 : _context . t0 === 'sia' ? 67 : _context . t0 === 'near' ? 74 : _context . t0 === 'tellor' ? 81 : 88 ;
80
82
break ;
81
83
82
84
case 11 :
@@ -88,7 +90,7 @@ function _handler() {
88
90
case 15 :
89
91
Spinner . stop ( ) ;
90
92
Log . SuccessLog ( "Install plugin " . concat ( plugin , " Successfully" ) ) ;
91
- return _context . abrupt ( "break" , 82 ) ;
93
+ return _context . abrupt ( "break" , 89 ) ;
92
94
93
95
case 18 :
94
96
Log . NormalLog ( 'Installing plugin, please wait a second...' ) ;
@@ -99,7 +101,7 @@ function _handler() {
99
101
case 22 :
100
102
Spinner . stop ( ) ;
101
103
Log . SuccessLog ( "Install plugin " . concat ( plugin , " Successfully" ) ) ;
102
- return _context . abrupt ( "break" , 82 ) ;
104
+ return _context . abrupt ( "break" , 89 ) ;
103
105
104
106
case 25 :
105
107
Log . NormalLog ( 'Installing plugin, please wait a second...' ) ;
@@ -110,7 +112,7 @@ function _handler() {
110
112
case 29 :
111
113
Spinner . stop ( ) ;
112
114
Log . SuccessLog ( "Install plugin " . concat ( plugin , " Successfully" ) ) ;
113
- return _context . abrupt ( "break" , 82 ) ;
115
+ return _context . abrupt ( "break" , 89 ) ;
114
116
115
117
case 32 :
116
118
Log . NormalLog ( 'Installing plugin, please wait a second...' ) ;
@@ -121,7 +123,7 @@ function _handler() {
121
123
case 36 :
122
124
Spinner . stop ( ) ;
123
125
Log . SuccessLog ( "Install plugin " . concat ( plugin , " Successfully" ) ) ;
124
- return _context . abrupt ( "break" , 82 ) ;
126
+ return _context . abrupt ( "break" , 89 ) ;
125
127
126
128
case 39 :
127
129
Log . NormalLog ( 'Installing plugin, please wait a second...' ) ;
@@ -132,7 +134,7 @@ function _handler() {
132
134
case 43 :
133
135
Spinner . stop ( ) ;
134
136
Log . SuccessLog ( "Install plugin " . concat ( plugin , " Successfully" ) ) ;
135
- return _context . abrupt ( "break" , 82 ) ;
137
+ return _context . abrupt ( "break" , 89 ) ;
136
138
137
139
case 46 :
138
140
Log . NormalLog ( 'Installing plugin, please wait a second...' ) ;
@@ -143,7 +145,7 @@ function _handler() {
143
145
case 50 :
144
146
Spinner . stop ( ) ;
145
147
Log . SuccessLog ( "Install plugin " . concat ( plugin , " Successfully" ) ) ;
146
- return _context . abrupt ( "break" , 82 ) ;
148
+ return _context . abrupt ( "break" , 89 ) ;
147
149
148
150
case 53 :
149
151
Log . NormalLog ( 'Installing plugin, please wait a second...' ) ;
@@ -154,7 +156,7 @@ function _handler() {
154
156
case 57 :
155
157
Spinner . stop ( ) ;
156
158
Log . SuccessLog ( "Install plugin " . concat ( plugin , " Successfully" ) ) ;
157
- return _context . abrupt ( "break" , 82 ) ;
159
+ return _context . abrupt ( "break" , 89 ) ;
158
160
159
161
case 60 :
160
162
Log . NormalLog ( 'Installing plugin, please wait a second...' ) ;
@@ -165,7 +167,7 @@ function _handler() {
165
167
case 64 :
166
168
Spinner . stop ( ) ;
167
169
Log . SuccessLog ( "Install plugin " . concat ( plugin , " Successfully" ) ) ;
168
- return _context . abrupt ( "break" , 82 ) ;
170
+ return _context . abrupt ( "break" , 89 ) ;
169
171
170
172
case 67 :
171
173
Log . NormalLog ( 'Installing plugin, please wait a second...' ) ;
@@ -176,7 +178,7 @@ function _handler() {
176
178
case 71 :
177
179
Spinner . stop ( ) ;
178
180
Log . SuccessLog ( "Install plugin " . concat ( plugin , " Successfully" ) ) ;
179
- return _context . abrupt ( "break" , 82 ) ;
181
+ return _context . abrupt ( "break" , 89 ) ;
180
182
181
183
case 74 :
182
184
Log . NormalLog ( 'Installing plugin, please wait a second...' ) ;
@@ -187,28 +189,39 @@ function _handler() {
187
189
case 78 :
188
190
Spinner . stop ( ) ;
189
191
Log . SuccessLog ( "Install plugin " . concat ( plugin , " Successfully" ) ) ;
190
- return _context . abrupt ( "break" , 82 ) ;
192
+ return _context . abrupt ( "break" , 89 ) ;
191
193
192
194
case 81 :
195
+ Log . NormalLog ( 'Installing plugin, please wait a second...' ) ;
196
+ Spinner . start ( ) ;
197
+ _context . next = 85 ;
198
+ return tellorHandler ( ) ;
199
+
200
+ case 85 :
201
+ Spinner . stop ( ) ;
202
+ Log . SuccessLog ( "Install plugin " . concat ( plugin , " Successfully" ) ) ;
203
+ return _context . abrupt ( "break" , 89 ) ;
204
+
205
+ case 88 :
193
206
Log . NormalLog ( 'Plugin not support yet' ) ;
194
207
195
- case 82 :
196
- _context . next = 89 ;
208
+ case 89 :
209
+ _context . next = 96 ;
197
210
break ;
198
211
199
- case 84 :
200
- _context . prev = 84 ;
212
+ case 91 :
213
+ _context . prev = 91 ;
201
214
_context . t1 = _context [ "catch" ] ( 0 ) ;
202
215
Spinner . stop ( ) ;
203
216
Log . ErrorLog ( 'something went wrong!' ) ;
204
217
console . error ( _context . t1 ) ;
205
218
206
- case 89 :
219
+ case 96 :
207
220
case "end" :
208
221
return _context . stop ( ) ;
209
222
}
210
223
}
211
- } , _callee , this , [ [ 0 , 84 ] ] ) ;
224
+ } , _callee , this , [ [ 0 , 91 ] ] ) ;
212
225
} ) ) ;
213
226
return _handler . apply ( this , arguments ) ;
214
227
}
0 commit comments