4sh / datamaintain

One tool to maintain all your database schemas!
Apache License 2.0
25 stars 6 forks source link

Remove exception catching & throwing duplication #136

Closed Lysoun closed 3 years ago

Lysoun commented 3 years ago

For each command available for the CLI, there is a duplication of the catching and throwing of exceptions. I would suggest creating an abstract class that implements CliktCommand, DatamaintainCliCommand for example that does that catching and then calls an abstract method, say executeCommand that does whatever the command is supposed to do.