@@ -82,7 +82,6 @@ func init() {
82
82
}
83
83
84
84
var (
85
- // rootCmd represents the base command when called without any subcommands
86
85
rootCmd = & cobra.Command {
87
86
Use : "answer" ,
88
87
Short : "Answer is a minimalist open source Q&A community." ,
@@ -92,7 +91,6 @@ To run answer, use:
92
91
- 'answer run' to launch application.` ,
93
92
}
94
93
95
- // runCmd represents the run command
96
94
runCmd = & cobra.Command {
97
95
Use : "run" ,
98
96
Short : "Run the application" ,
@@ -105,7 +103,6 @@ To run answer, use:
105
103
},
106
104
}
107
105
108
- // initCmd represents the init command
109
106
initCmd = & cobra.Command {
110
107
Use : "init" ,
111
108
Short : "init answer application" ,
@@ -135,7 +132,6 @@ To run answer, use:
135
132
},
136
133
}
137
134
138
- // upgradeCmd represents the upgrade command
139
135
upgradeCmd = & cobra.Command {
140
136
Use : "upgrade" ,
141
137
Short : "upgrade Answer version" ,
@@ -157,7 +153,6 @@ To run answer, use:
157
153
},
158
154
}
159
155
160
- // dumpCmd represents the dump command
161
156
dumpCmd = & cobra.Command {
162
157
Use : "dump" ,
163
158
Short : "back up data" ,
@@ -179,7 +174,6 @@ To run answer, use:
179
174
},
180
175
}
181
176
182
- // checkCmd represents the check command
183
177
checkCmd = & cobra.Command {
184
178
Use : "check" ,
185
179
Short : "checking the required environment" ,
@@ -214,7 +208,6 @@ To run answer, use:
214
208
},
215
209
}
216
210
217
- // buildCmd used to build another answer with plugins
218
211
buildCmd = & cobra.Command {
219
212
Use : "build" ,
220
213
Short : "used to build answer with plugins" ,
@@ -235,7 +228,6 @@ To run answer, use:
235
228
},
236
229
}
237
230
238
- // pluginCmd prints all plugins packed in the binary
239
231
pluginCmd = & cobra.Command {
240
232
Use : "plugin" ,
241
233
Short : "prints all plugins packed in the binary" ,
@@ -249,7 +241,6 @@ To run answer, use:
249
241
},
250
242
}
251
243
252
- // configCmd set some config to default value
253
244
configCmd = & cobra.Command {
254
245
Use : "config" ,
255
246
Short : "set some config to default value" ,
@@ -286,7 +277,6 @@ To run answer, use:
286
277
},
287
278
}
288
279
289
- // i18nCmd used to merge i18n files
290
280
i18nCmd = & cobra.Command {
291
281
Use : "i18n" ,
292
282
Short : "overwrite i18n files" ,
0 commit comments