@@ -68,7 +68,7 @@ func init() {
68
68
69
69
buildCmd .Flags ().StringVarP (& buildDir , "build-dir" , "b" , "" , "dir for build process" )
70
70
71
- upgradeCmd .Flags ().StringVarP (& upgradeVersion , "from" , "f" , "" , "upgrade from specific version, eg: -f v1.1.0" )
71
+ upgradeCmd .Flags ().StringVarP (& upgradeVersion , "from" , "f" , "" , "upgrade to the specific version from your input , eg: -f v1.1.0" )
72
72
73
73
configCmd .Flags ().StringSliceVarP (& configFields , "with" , "w" , []string {}, "the fields that need to be set to the default value, eg: -w allow_password_login" )
74
74
@@ -93,8 +93,8 @@ To run answer, use:
93
93
94
94
runCmd = & cobra.Command {
95
95
Use : "run" ,
96
- Short : "Run the application " ,
97
- Long : `Run the application ` ,
96
+ Short : "Run Answer " ,
97
+ Long : `Start running Answer ` ,
98
98
Run : func (_ * cobra.Command , _ []string ) {
99
99
cli .FormatAllPath (dataDirPath )
100
100
fmt .Println ("config file path: " , cli .GetConfigFilePath ())
@@ -105,8 +105,8 @@ To run answer, use:
105
105
106
106
initCmd = & cobra.Command {
107
107
Use : "init" ,
108
- Short : "init answer application " ,
109
- Long : `init answer application ` ,
108
+ Short : "Initialize Answer " ,
109
+ Long : `Initialize Answer with specified configuration ` ,
110
110
Run : func (_ * cobra.Command , _ []string ) {
111
111
// check config file and database. if config file exists and database is already created, init done
112
112
cli .InstallAllInitialEnvironment (dataDirPath )
@@ -134,8 +134,8 @@ To run answer, use:
134
134
135
135
upgradeCmd = & cobra.Command {
136
136
Use : "upgrade" ,
137
- Short : "upgrade Answer version " ,
138
- Long : `upgrade Answer version` ,
137
+ Short : "Upgrade Answer" ,
138
+ Long : `Upgrade Answer to the latest or a specific version` ,
139
139
Run : func (_ * cobra.Command , _ []string ) {
140
140
log .SetLogger (log .NewStdLogger (os .Stdout ))
141
141
cli .FormatAllPath (dataDirPath )
@@ -155,8 +155,8 @@ To run answer, use:
155
155
156
156
dumpCmd = & cobra.Command {
157
157
Use : "dump" ,
158
- Short : "back up data" ,
159
- Long : `back up data ` ,
158
+ Short : "Back up data" ,
159
+ Long : `Back up database into an SQL file ` ,
160
160
Run : func (_ * cobra.Command , _ []string ) {
161
161
fmt .Println ("Answer is backing up data" )
162
162
cli .FormatAllPath (dataDirPath )
@@ -176,7 +176,7 @@ To run answer, use:
176
176
177
177
checkCmd = & cobra.Command {
178
178
Use : "check" ,
179
- Short : "checking the required environment" ,
179
+ Short : "Check the required environment" ,
180
180
Long : `Check if the current environment meets the startup requirements` ,
181
181
Run : func (_ * cobra.Command , _ []string ) {
182
182
cli .FormatAllPath (dataDirPath )
@@ -210,7 +210,7 @@ To run answer, use:
210
210
211
211
buildCmd = & cobra.Command {
212
212
Use : "build" ,
213
- Short : "used to build answer with plugins" ,
213
+ Short : "Build Answer with plugins" ,
214
214
Long : `Build a new Answer with plugins that you need` ,
215
215
Run : func (_ * cobra.Command , _ []string ) {
216
216
fmt .Printf ("try to build a new answer with plugins:\n %s\n " , strings .Join (buildWithPlugins , "\n " ))
@@ -230,8 +230,8 @@ To run answer, use:
230
230
231
231
pluginCmd = & cobra.Command {
232
232
Use : "plugin" ,
233
- Short : "prints all plugins packed in the binary" ,
234
- Long : `prints all plugins packed in the binary` ,
233
+ Short : "Print all plugins packed in the binary" ,
234
+ Long : `Print all plugins packed in the binary` ,
235
235
Run : func (_ * cobra.Command , _ []string ) {
236
236
_ = plugin .CallBase (func (base plugin.Base ) error {
237
237
info := base .Info ()
@@ -243,8 +243,8 @@ To run answer, use:
243
243
244
244
configCmd = & cobra.Command {
245
245
Use : "config" ,
246
- Short : "set some config to default value" ,
247
- Long : `set some config to default value` ,
246
+ Short : "Set some config to default value" ,
247
+ Long : `Set some config to default value` ,
248
248
Run : func (_ * cobra.Command , _ []string ) {
249
249
cli .FormatAllPath (dataDirPath )
250
250
@@ -279,7 +279,7 @@ To run answer, use:
279
279
280
280
i18nCmd = & cobra.Command {
281
281
Use : "i18n" ,
282
- Short : "overwrite i18n files" ,
282
+ Short : "Overwrite i18n files" ,
283
283
Long : `Merge i18n files from plugins to original i18n files. It will overwrite the original i18n files` ,
284
284
Run : func (_ * cobra.Command , _ []string ) {
285
285
if err := cli .ReplaceI18nFilesLocal (i18nTargetPath ); err != nil {
0 commit comments