Files
go-test-sarif/cmd/main.go
2025-03-24 00:38:41 +02:00

26 lines
425 B
Go

// main package contains the cli functionality
package main
import (
"fmt"
"os"
"github.com/ivuorinen/go-test-sarif/internal"
)
func main() {
if len(os.Args) < 3 {
fmt.Println("Usage: go-test-sarif <input.json> <output.sarif>")
os.Exit(1)
}
inputFile := os.Args[1]
outputFile := os.Args[2]
err := internal.ConvertToSARIF(inputFile, outputFile)
if err != nil {
fmt.Println("Error:", err)
os.Exit(1)
}
}