Borg/examples/run_matrix_programmatically/main.go
google-labs-jules[bot] 80aacc85a4 feat: Implement Go examples and refactor matrix execution
- Implements all placeholder Go examples in the `examples` directory.
- Corrects the `run_matrix_programmatically` example to use the `borg` package.
- Refactors the code to centralize the matrix execution logic in the `matrix` package.
- Updates the documentation to include a new "Programmatic Usage" section that describes all of the Go examples.
- Updates the "Terminal Isolation Matrix" section to remove manual 'runc' instructions, emphasizing that 'borg run' handles this process to maintain security and isolation.
- Adds missing examples for 'collect github repos', 'collect github release', and 'compile' commands to the documentation.
2025-11-14 11:12:15 +00:00

18 lines
333 B
Go

package main
import (
"log"
"github.com/Snider/Borg/pkg/matrix"
)
func main() {
log.Println("Executing matrix with Borg...")
// Execute the matrix using the Borg package.
if err := matrix.Run("programmatic.matrix"); err != nil {
log.Fatalf("Failed to run matrix: %v", err)
}
log.Println("Matrix execution finished.")
}