Refactors error handling by introdcuing a CliResult and CliError type. Thus allowing to map low level errros in application errors and handle them all at one place.
Also intrododuces the "count_cards_in_directory" function to make clear this function only counts cards (json files).
Refactors error handling by introdcuing a CliResult and CliError type. Thus allowing to map low level errros in application errors and handle them all at one place.
Also intrododuces the "count_cards_in_directory" function to make clear this function only counts cards (json files).