Merge pull request 'fix(cli): assign-schedule-type dispatch at top level' (#8) from fix/assign-schedule-type-dispatch into main
This commit was merged in pull request #8.
This commit is contained in:
@@ -68,6 +68,11 @@ func main() {
|
|||||||
default:
|
default:
|
||||||
output.Errorf("unknown agent subcommand: %s", args[1])
|
output.Errorf("unknown agent subcommand: %s", args[1])
|
||||||
}
|
}
|
||||||
|
case "assign-schedule-type":
|
||||||
|
// Leaf command (no subcommands) — args are <agent-id> <type-name>.
|
||||||
|
// Must dispatch at top level because handleGroup treats args[0] as
|
||||||
|
// a subcommand name and would error "unknown ... subcommand: <agent-id>".
|
||||||
|
handleAssignScheduleType(args[1:])
|
||||||
default:
|
default:
|
||||||
if group, ok := findGroup(args[0]); ok {
|
if group, ok := findGroup(args[0]); ok {
|
||||||
handleGroup(group, args[1:])
|
handleGroup(group, args[1:])
|
||||||
|
|||||||
Reference in New Issue
Block a user