Commit Graph
5 Commits
Author SHA1 Message Date
Felix Uhl 6f579bd98a disko2: Handle too many arguments error 2024-10-27 20:40:47 +01:00
Felix Uhl 196c746f7e disko2: Make CLI errors testable as well 2024-10-27 20:40:47 +01:00
Felix Uhl 47081e80ea disko2: Fix error type definitions 2024-10-27 16:15:09 +01:00
Felix Uhl f2618b5490 disko2: Move to error codes and dedicated error rendering
This splits the concern of how to display errors off from the business
logic. This should make it easier to test functionality and allow us
to concentrate on how to actually display and communicate errors to the
user. At some point this might also make i18n feasible, because you only
have to swap out a single file.

This hasn't quite fixed the debug/trace story yet. It should be possible
to simply insert a "debug" command into any pipeline and see the context
and state at that point.
2024-10-25 23:10:57 +02:00
Felix Uhl 62581f38f5 disko2: Split into modules 2024-10-25 11:13:10 +02:00