mirror of
https://github.com/boshu2/agentops.git
synced 2026-09-14 15:08:13 +08:00
28 lines
951 B
Go
28 lines
951 B
Go
// practices: [hexagonal-architecture, ddd-bounded-context]
|
|
package main
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
|
|
"github.com/boshu2/agentops/cli/internal/clicontract"
|
|
workflowscommands "github.com/boshu2/agentops/cli/internal/commands/workflows"
|
|
)
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(newWorkflowsCommand())
|
|
}
|
|
|
|
// newWorkflowsCommand wires the workflows command module to its host seams.
|
|
// The global --dry-run flag drives link/unlink; checkout resolution, target
|
|
// resolution, and the link/unlink filesystem sweeps are host effects delegated
|
|
// to internal/workflowsapp. Workflows are a Claude-only runtime adapter (the
|
|
// skills-codex doctrine, Claude-side), grouped under Knowledge next to skills.
|
|
// Like skills, the family attaches no capabilities contract.
|
|
func newWorkflowsCommand() *cobra.Command {
|
|
module := workflowscommands.NewModule(clicontract.HostOptions{
|
|
DryRun: GetDryRun,
|
|
OutputMode: GetOutput,
|
|
})
|
|
return module.Command()
|
|
}
|