(cmd *cobra.Command, deps commandDeps, name string, filePath string)
| 139 | } |
| 140 | |
| 141 | func runSkillViewCommand(cmd *cobra.Command, deps commandDeps, name string, filePath string) error { |
| 142 | skillName := strings.TrimSpace(name) |
| 143 | if skillName == "" { |
| 144 | return errors.New("skill name is required") |
| 145 | } |
| 146 | scope, err := resolveSkillCommandScope(cmd.Context(), cmd, deps, agentActionCLI("skill.view")) |
| 147 | if err != nil { |
| 148 | return err |
| 149 | } |
| 150 | if scope.useDaemon { |
| 151 | return runDaemonSkillViewCommand(cmd, deps, skillName, filePath, scope.query) |
| 152 | } |
| 153 | return runLocalSkillViewCommand(cmd, deps, skillName, filePath, scope.query.ForAgent) |
| 154 | } |
| 155 | |
| 156 | func runDaemonSkillViewCommand( |
| 157 | cmd *cobra.Command, |
no test coverage detected