Documentation
¶
Overview ¶
Package cmd converts CLI command-line arguments (-L services, -F chain nodes) into structured config.Config objects. It supports URL-format service and node specifications, metadata query parameters, and auto-detection of handler, listener, dialer, and connector types via the registry.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ErrInvalidCmd is returned when the command-line argument is empty. ErrInvalidCmd = errors.New("invalid cmd") // ErrInvalidNode is returned when a node specification cannot be parsed. ErrInvalidNode = errors.New("invalid node") )
Functions ¶
func BuildConfigFromCmd ¶
BuildConfigFromCmd converts CLI service (-L) and node (-F) arguments into a Config. Each node becomes a hop in a single chain; each service produces a ServiceConfig with auto-detected handler and listener types. Query parameters in the URL are parsed as metadata and routed to the appropriate config sub-struct (handler, listener, hop, connector, dialer, service).
Types ¶
This section is empty.