(deps commandDeps)
| 427 | } |
| 428 | |
| 429 | func newSkillDisableCommand(deps commandDeps) *cobra.Command { |
| 430 | return newSkillActionCommand(deps, "disable <name>", "Disable a daemon-managed skill", func( |
| 431 | ctx context.Context, |
| 432 | client DaemonClient, |
| 433 | name string, |
| 434 | query SkillQuery, |
| 435 | ) (SkillActionRecord, error) { |
| 436 | return client.DisableSkill(ctx, name, query) |
| 437 | }) |
| 438 | } |
| 439 | |
| 440 | func newSkillActionCommand( |
| 441 | deps commandDeps, |
no test coverage detected