slick icon indicating copy to clipboard operation
slick copied to clipboard

Refactor: simplify the CLI command addition

Open thoriqadillah opened this issue 2 years ago • 0 comments

Before this, when we want to make a new command for the cli, we need to extend the switch case, and then manually adding the usage or help command. This can be messy pretty quick. So, i use the cobra library to simplify the command addition for further development

Note: this PR mostly only modify/refactor the current cli approach. There is absolutely room for other improvement, but the intention of this PR solely only to refactor the cli

thoriqadillah avatar Dec 16 '23 15:12 thoriqadillah