mirror of
https://github.com/Ed1s0nZ/CyberStrikeAI.git
synced 2026-11-25 05:40:57 +01:00
25 lines
444 B
Go
25 lines
444 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
"flag"
|
|
"fmt"
|
|
"os"
|
|
"os/signal"
|
|
|
|
"cyberstrike-ai/internal/agentruntime"
|
|
)
|
|
|
|
func main() {
|
|
root := flag.String("root", "runtime/pi", "Pi runtime source directory")
|
|
flag.Parse()
|
|
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt)
|
|
defer cancel()
|
|
path, err := agentruntime.PreparePiRuntime(ctx, *root)
|
|
if err != nil {
|
|
fmt.Fprintln(os.Stderr, err)
|
|
os.Exit(1)
|
|
}
|
|
fmt.Println(path)
|
|
}
|