feat: schedule-type CLI commands
- hf schedule-type list - hf schedule-type create <name> --work <from>-<to> --entertainment <from>-<to> - hf schedule-type delete <id> - hf assign-schedule-type <agent-id> <schedule-type-name> Requires schedule_type.read / schedule_type.manage permissions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -180,6 +180,16 @@ func CommandSurface() []Group {
|
||||
{Name: "api-key", Description: "Manage monitor API keys", Permitted: has(perms, "monitor.manage")},
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "schedule-type",
|
||||
Description: "Manage work/entertainment schedule types",
|
||||
SubCommands: []Command{
|
||||
{Name: "list", Description: "List schedule types", Permitted: has(perms, "schedule_type.read")},
|
||||
{Name: "create", Description: "Create a schedule type", Permitted: has(perms, "schedule_type.manage")},
|
||||
{Name: "delete", Description: "Delete a schedule type", Permitted: has(perms, "schedule_type.manage")},
|
||||
},
|
||||
},
|
||||
{Name: "assign-schedule-type", Description: "Assign a schedule type to an agent: assign-schedule-type <agent-id> <type-name>", Permitted: has(perms, "schedule_type.manage")},
|
||||
}
|
||||
|
||||
for i := range groups {
|
||||
|
||||
Reference in New Issue
Block a user