Run tasks directly with language-independent project tools

This commit is contained in:
2026-10-09 01:48:46 +01:00
parent 998b0941d3
commit ed93d055bf
23 changed files with 170 additions and 156 deletions
+3 -7
View File
@@ -18,9 +18,9 @@ func main() {
name := flag.String("pipeline", "", "Registered pipeline name; omitted opens fuzzy selection")
prompt := flag.String("prompt", "", "Task prompt; omitted opens a multiline composer")
workspace := flag.String("workspace", "", "Repository directory (defaults to current directory with -run)")
yes := flag.Bool("yes", false, "Start a supplied name/prompt without typing RUN (no implicit tool approval)")
allow := flag.Bool("allow-tools", false, "Approve declared shell/edit tools with -yes")
paths := flag.String("write-paths", "", "Comma-separated exact existing project-local Go files")
yes := flag.Bool("yes", false, "Compatibility flag; supplied name/prompt start immediately")
allow := flag.Bool("allow-tools", false, "Compatibility flag; tools follow the pipeline stages")
paths := flag.String("write-paths", "", "Optional narrower edit scope; default is the run directory")
flag.Parse()
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
@@ -44,10 +44,6 @@ func main() {
fmt.Fprintln(os.Stderr, "-yes requires -pipeline and a nonempty -prompt")
os.Exit(2)
}
if *yes && len(options.WritePaths) > 0 && !*allow {
fmt.Fprintln(os.Stderr, "-write-paths with -yes requires -allow-tools")
os.Exit(2)
}
model = tui.NewRun(ctx, *url, options)
}
if _, err := tea.NewProgram(model, tea.WithAltScreen()).Run(); err != nil {