From f8afb7d5889f5c8b6ea256fd078fa8426d21c7be Mon Sep 17 00:00:00 2001 From: James O'Doherty Date: Sun, 7 Jun 2026 22:57:34 -0400 Subject: feat(cli): introduce explicit run/exec subcommands to prevent typo-execution Prevent the ambiguity where a mistyped subcommand was interpreted as the target wrapped process. - Introduce `run` and `exec` (alias) subcommands for launching wrapped processes. - Promote internal test commands (`test-ns`, `test-args`, `test-lifecycle`) to explicit subcommands. - Update CLI routing to return an error for unknown subcommands instead of falling back to the default execution path. - Update `README.md` usage examples and all test suites to use the new subcommand structure. --- tests/e2e/config_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/e2e/config_test.go') diff --git a/tests/e2e/config_test.go b/tests/e2e/config_test.go index 33eb6e6..28857c8 100644 --- a/tests/e2e/config_test.go +++ b/tests/e2e/config_test.go @@ -53,7 +53,7 @@ AllowedIPs = 10.0.0.0/24 } // Test 2: Configuration after bootstrap (Isolated) - cmdIsolated := exec.Command(binaryPath, "--profile", profile, "--", "sh", "-c", "echo $XDG_RUNTIME_DIR") + cmdIsolated := exec.Command(binaryPath, "run", "--profile", profile, "--", "sh", "-c", "echo $XDG_RUNTIME_DIR") cmdIsolated.Env = append(os.Environ(), fmt.Sprintf("XDG_RUNTIME_DIR=%s", tmpRuntimeDir), fmt.Sprintf("XDG_CONFIG_HOME=%s", tmpConfigDir), -- cgit v1.2.3