()
| 32 | } |
| 33 | |
| 34 | func init() { |
| 35 | // Initialize structured logging for CLI |
| 36 | shared.InitLogger(&shared.LogConfig{ |
| 37 | Level: shared.LevelInfo, |
| 38 | Format: "text", // Human-readable format for CLI |
| 39 | AddSource: false, |
| 40 | ServiceName: "lambda-nat-proxy-cli", |
| 41 | }) |
| 42 | |
| 43 | // Add global flags |
| 44 | rootCmd.PersistentFlags().StringP("config", "c", "", "config file path") |
| 45 | |
| 46 | // Disable completion command |
| 47 | rootCmd.CompletionOptions.DisableDefaultCmd = true |
| 48 | |
| 49 | // Add commands to root |
| 50 | rootCmd.AddCommand(versionCmd) |
| 51 | rootCmd.AddCommand(runCmd) |
| 52 | rootCmd.AddCommand(deployCmd) |
| 53 | rootCmd.AddCommand(destroyCmd) |
| 54 | rootCmd.AddCommand(statusCmd) |
| 55 | rootCmd.AddCommand(configCmd) |
| 56 | } |
nothing calls this directly
no test coverage detected