Please describe the feature
As a developer, I want the exiting of the cli command to only happen in the main function so that the control of the exiting of the commands is centralised and managed by the main function. This improves clarity and the ability to test the cli commands.
Acceptance criteria
Additional context
Main culprit: https://github.com/NBISweden/sda-cli/blob/main/encrypt/encrypt.go#L146
Given that the code exits at this point we can not easily add unit tests testing this behaviour.
Estimation of size: medium
Estimation of priority: low