Refactored agent command handling to remove redundant boiler-plate code. Commands are parsed dynamically based on a single definition. Command-specific actions might still need distinct implementations.

This commit is contained in:
Jakob Friedl
2025-07-14 22:14:27 +02:00
parent 2d2c94ed38
commit b8b276d887
5 changed files with 240 additions and 129 deletions

View File

@@ -1,6 +1,6 @@
import winim, tables
import ../../server/types
export Task, TaskCommand, TaskResult, TaskStatus
export Task, CommandType, TaskResult, TaskStatus
type
ProductType* = enum