@ -12,18 +12,18 @@ func Run() {
var v , ver , test , clean , reset , hideMarketbar , hideChart , hideStatusbar , onlyTable bool
var v , ver , test , clean , reset , hideMarketbar , hideChart , hideStatusbar , onlyTable bool
var config , cmcAPIKey , apiChoice , colorscheme string
var config , cmcAPIKey , apiChoice , colorscheme string
flag . BoolVar ( & v , "v" , false , "Version" )
flag . BoolVar ( & v , "v" , false , "Version" )
flag . BoolVar ( & ver , "version" , false , " V ersion")
flag . BoolVar ( & ver , "version" , false , " Display current v ersion")
flag . BoolVar ( & test , "test" , false , "Run test ")
flag . BoolVar ( & test , "test" , false , "Run test (for Homebrew) ")
flag . BoolVar ( & clean , "clean" , false , " Clean cache")
flag . BoolVar ( & clean , "clean" , false , " Wipe clean the cache")
flag . BoolVar ( & reset , "reset" , false , "Reset config")
flag . BoolVar ( & reset , "reset" , false , "Reset the config. Make sure to backup any relevant changes first! ")
flag . BoolVar ( & hideMarketbar , "hide-marketbar" , false , "Hide marketbar")
flag . BoolVar ( & hideMarketbar , "hide-marketbar" , false , "Hide the top marketbar")
flag . BoolVar ( & hideChart , "hide-chart" , false , "Hide chart view")
flag . BoolVar ( & hideChart , "hide-chart" , false , "Hide the chart view")
flag . BoolVar ( & hideStatusbar , "hide-statusbar" , false , "Hide statusbar")
flag . BoolVar ( & hideStatusbar , "hide-statusbar" , false , "Hide the bottom statusbar")
flag . BoolVar ( & onlyTable , "only-table" , false , "Show only the table ")
flag . BoolVar ( & onlyTable , "only-table" , false , "Show only the table . Hides the chart and top and bottom bars. ")
flag . StringVar ( & config , "config" , "" , "Config filepath ")
flag . StringVar ( & config , "config" , "" , "Config filepath . Default is ~/.cointop/config.toml ")
flag . StringVar ( & cmcAPIKey , "coinmarketcap-api-key" , "" , " CoinMarketCap API key")
flag . StringVar ( & cmcAPIKey , "coinmarketcap-api-key" , "" , " Set the CoinMarketCap API key")
flag . StringVar ( & apiChoice , "api" , cointop . CoinGecko , "API choice" )
flag . StringVar ( & apiChoice , "api" , cointop . CoinGecko , "API choice" )
flag . StringVar ( & colorscheme , "colorscheme" , "" , "Colorscheme name ")
flag . StringVar ( & colorscheme , "colorscheme" , "" , "Colorscheme to use. Default is \"cointop\", For instructions, visit https://github.com/cointop-sh/colors ")
flag . Parse ( )
flag . Parse ( )
if v || ver {
if v || ver {