MCPcopy Create free account
hub / github.com/compozy/agh / newTaskDependencyRemoveCommand

Function newTaskDependencyRemoveCommand

internal/cli/task.go:2330–2348  ·  view source on GitHub ↗
(deps commandDeps)

Source from the content-addressed store, hash-verified

2328}
2329
2330func newTaskDependencyRemoveCommand(deps commandDeps) *cobra.Command {
2331 return &cobra.Command{
2332 Use: "remove <task-id> <depends-on-id>",
2333 Short: "Remove a dependency edge from a task",
2334 Args: cobra.ExactArgs(2),
2335 RunE: func(cmd *cobra.Command, args []string) error {
2336 client, err := clientFromDeps(deps)
2337 if err != nil {
2338 return err
2339 }
2340
2341 updated, err := client.RemoveTaskDependency(cmd.Context(), args[0], args[1])
2342 if err != nil {
2343 return err
2344 }
2345 return writeCommandOutput(cmd, taskDetailBundle(&updated))
2346 },
2347 }
2348}
2349
2350func newTaskRunCommand(deps commandDeps) *cobra.Command {
2351 cmd := &cobra.Command{

Callers 1

newTaskDependencyCommandFunction · 0.85

Calls 4

clientFromDepsFunction · 0.85
writeCommandOutputFunction · 0.85
taskDetailBundleFunction · 0.85
RemoveTaskDependencyMethod · 0.65

Tested by

no test coverage detected