(inputs []BashInput)
| 141 | } |
| 142 | |
| 143 | func RenderGroupedBashToolUse(inputs []BashInput) string { |
| 144 | if len(inputs) == 0 { |
| 145 | return "" |
| 146 | } |
| 147 | if len(inputs) == 1 { |
| 148 | return RenderBashToolUse(inputs[0]) |
| 149 | } |
| 150 | commands := make([]string, 0, min(len(inputs), 3)) |
| 151 | for i, input := range inputs { |
| 152 | if i >= 3 { |
| 153 | break |
| 154 | } |
| 155 | commands = append(commands, truncateString(input.Command, 60)) |
| 156 | } |
| 157 | return "Bash (" + strconv.Itoa(len(inputs)) + " commands): " + strings.Join(commands, "; ") |
| 158 | } |
| 159 | |
| 160 | func BackfillBashInput(input BashInput) BashInput { |
| 161 | description := input.Description |
nothing calls this directly
no test coverage detected