Skip to content

Commit

Permalink
colorscheme help install instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmota committed Jun 26, 2019
1 parent 0abaeb9 commit 0dac74c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/cointop.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion cointop/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0dac74c

Please sign in to comment.