(output string)
| 2039 | } |
| 2040 | |
| 2041 | func extractDryRunPlan(output string) string { |
| 2042 | lines := strings.Split(strings.TrimSpace(output), "\n") |
| 2043 | plans := make([]string, 0, len(lines)) |
| 2044 | for _, line := range lines { |
| 2045 | trimmed := strings.TrimSpace(line) |
| 2046 | if strings.HasPrefix(trimmed, "would_") || strings.HasPrefix(trimmed, "plan_") || strings.HasPrefix(trimmed, "applied_") { |
| 2047 | plans = append(plans, trimmed) |
| 2048 | } |
| 2049 | } |
| 2050 | return strings.Join(plans, ", ") |
| 2051 | } |
| 2052 | |
| 2053 | func extractAppliedPlan(output string) string { |
| 2054 | lines := strings.Split(strings.TrimSpace(output), "\n") |
no outgoing calls
no test coverage detected