MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / runEdit

Function runEdit

cmd/chief/main.go:282–298  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

280}
281
282func runEdit() {
283 opts := cmd.EditOptions{}
284
285 // Parse arguments: chief edit [name] [--agent X] [--agent-path X]
286 flagAgent, flagPath, remaining := parseAgentFlags(os.Args, 2)
287 for _, arg := range remaining {
288 if opts.Name == "" && !strings.HasPrefix(arg, "-") {
289 opts.Name = arg
290 }
291 }
292
293 opts.Provider = resolveProvider(flagAgent, flagPath)
294 if err := cmd.RunEdit(opts); err != nil {
295 fmt.Fprintf(os.Stderr, "Error: %v\n", err)
296 os.Exit(1)
297 }
298}
299
300func runStatus() {
301 opts := cmd.StatusOptions{}

Callers 1

mainFunction · 0.85

Calls 3

RunEditFunction · 0.92
parseAgentFlagsFunction · 0.85
resolveProviderFunction · 0.85

Tested by

no test coverage detected