colorscheme help install instructions

pull/38/head
Miguel Mota 5 years ago
parent 0abaeb9e56
commit 0dac74cb8c
No known key found for this signature in database
GPG Key ID: 67EC1161588A00F9

@ -23,7 +23,7 @@ func Run() {
flag.StringVar(&config, "config", "", "Config filepath. Default is ~/.cointop/config.toml")
flag.StringVar(&cmcAPIKey, "coinmarketcap-api-key", "", "Set the CoinMarketCap API key")
flag.StringVar(&apiChoice, "api", cointop.CoinGecko, "API choice")
flag.StringVar(&colorscheme, "colorscheme", "", "Colorscheme to use. Default is \"cointop\", For instructions, visit https://github.com/cointop-sh/colors")
flag.StringVar(&colorscheme, "colorscheme", "", "Colorscheme to use. Default is \"cointop\". To install standard themes, do:\n\ngit clone git@github.com:cointop-sh/colors.git ~/.cointop/colors\n\nFor additional instructions, visit: https://github.com/cointop-sh/colors")
flag.Parse()
if v || ver {

@ -287,7 +287,7 @@ func (ct *Cointop) getColorschemeColors() (map[string]interface{}, error) {
return colors, nil
}
return nil, fmt.Errorf("The colorscheme file %q was not found.\n\nFor help and colorschemes, please visit: https://github.com/cointop-sh/colors", path)
return nil, fmt.Errorf("The colorscheme file %q was not found.\n\nTo install standard themes, do:\n\ngit clone git@github.com:cointop-sh/colors.git ~/.cointop/colors\n\nFor additional instructions, visit: https://github.com/cointop-sh/colors", path)
}
if _, err := toml.DecodeFile(path, &colors); err != nil {

Loading…
Cancel
Save