refactoring cli to support multiple sub commands

* refactor
* adding list cards subcommand