|
58 | 58 | inMemoryMode bool |
59 | 59 | tableSize int64 |
60 | 60 | requestUUID string |
| 61 | + statusPort uint |
61 | 62 |
|
62 | 63 | // Config is the populated *configuration.Configuration from |
63 | 64 | // the configurationFile. If none is provided, this is set |
@@ -288,6 +289,13 @@ default values.`, |
288 | 289 | "requestUUID configures the requestUUID in logs, which aims to enable search logs by requestUUID", |
289 | 290 | ) |
290 | 291 |
|
| 292 | + checkDataCmd.Flags().UintVar( |
| 293 | + &statusPort, |
| 294 | + "status-port", |
| 295 | + 0, |
| 296 | + "status-port configures the status query port, this will override the status_port", |
| 297 | + ) |
| 298 | + |
291 | 299 | rootCmd.AddCommand(checkDataCmd) |
292 | 300 | checkConstructionCmd.Flags().StringVar( |
293 | 301 | &asserterConfigurationFile, |
@@ -324,6 +332,13 @@ default values.`, |
324 | 332 | "requestUUID configures the requestUUID in logs, which aims to enable search logs by requestUUID", |
325 | 333 | ) |
326 | 334 |
|
| 335 | + checkConstructionCmd.Flags().UintVar( |
| 336 | + &statusPort, |
| 337 | + "status-port", |
| 338 | + 0, |
| 339 | + "status-port configures the status query port, this will override the status_port", |
| 340 | + ) |
| 341 | + |
327 | 342 | rootCmd.AddCommand(checkConstructionCmd) |
328 | 343 |
|
329 | 344 | // View Commands |
@@ -419,6 +434,13 @@ func initConfig() { |
419 | 434 | if len(requestUUID) != 0 { |
420 | 435 | Config.RequestUUID = requestUUID |
421 | 436 | } |
| 437 | + |
| 438 | + if statusPort > 0 { |
| 439 | + Config.Data.StatusPort = statusPort |
| 440 | + if Config.Construction != nil { |
| 441 | + Config.Construction.StatusPort = statusPort |
| 442 | + } |
| 443 | + } |
422 | 444 | } |
423 | 445 |
|
424 | 446 | func ensureDataDirectoryExists() { |
|
0 commit comments