From 66b782e261f1cd928ad6a8482788a65fb484db45 Mon Sep 17 00:00:00 2001 From: James O'Doherty Date: Thu, 4 Jun 2026 22:38:44 -0400 Subject: refactor: simplify architecture and improve documentation - Extract orchestration logic from `internal/cli` into a new `internal/manager` package for better composability. - Migrate technical implementation details from README.md to package-level godoc strings. - Rewrite README.md to be more user-centric, focusing on quick start and usage. - Add comprehensive documentation for exported structs and fields across the project. - Verify all changes with `go fmt`, `go vet`, `golangci-lint`, and full E2E test suite. --- internal/config/config.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'internal/config') diff --git a/internal/config/config.go b/internal/config/config.go index 5aa8462..d83c59d 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -1,7 +1,11 @@ package config +// Config holds the application-level configuration for a single execution run. type Config struct { - Profile string + // Profile is the name of the WireGuard profile to use. + Profile string + // DNSServer is an optional override for the DNS server. DNSServer string - Command []string + // Command is the actual command and arguments to be executed within the namespace. + Command []string } -- cgit v1.2.3