(t *testing.T)
| 162 | } |
| 163 | |
| 164 | func TestInitCommandInteractiveModeDetection(t *testing.T) { |
| 165 | t.Parallel() |
| 166 | |
| 167 | // Test that interactive mode is triggered when no flags are set |
| 168 | // We can't test the actual interactive prompts in unit tests, but we can |
| 169 | // verify that the command structure supports the detection logic |
| 170 | |
| 171 | cmd := NewInitCommand() |
| 172 | |
| 173 | // Verify that all the flags exist that are checked for interactive mode detection |
| 174 | requiredFlags := []string{"mcp", "no-mcp", "no-skill", "no-agent", "codespaces", "completions", "create-pull-request", "pr"} |
| 175 | for _, flagName := range requiredFlags { |
| 176 | flag := cmd.Flags().Lookup(flagName) |
| 177 | if flag == nil { |
| 178 | t.Errorf("Expected flag %q to exist for interactive mode detection", flagName) |
| 179 | } |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | func TestInitRepositoryBasic(t *testing.T) { |
| 184 | tmpDir := testutil.TempDir(t, "test-*") |
nothing calls this directly
no test coverage detected