MCPcopy Create free account
hub / github.com/dan-v/lambda-nat-proxy / init

Function init

cmd/lambda-nat-proxy/cli.go:34–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32}
33
34func 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}

Callers

nothing calls this directly

Calls 1

InitLoggerFunction · 0.92

Tested by

no test coverage detected