rubixchain / rubixgoplatform

GNU General Public License v3.0
8 stars 17 forks source link

Migrate CLI to use `cobra` package #160

Open arnabghose997 opened 3 months ago

arnabghose997 commented 3 months ago

In the current CLI implementation, the help menu for every command lists all available flags, regardless of whether they are required for that specific command. This makes it difficult to determine which flags are necessary and leads to reliance on checking the code frequently if the developer is not well acquainted with the CLI command beforehand.

While adding or removing new commands, we have to ensure that commands and commandHelp are of same length

The use of cobra will help in mitigating the above mentioned concern, providing a efficient way to maintain the CLI