From e1dfcb85f1b613237bab9ba6426e25c297bcd141 Mon Sep 17 00:00:00 2001 From: Christian Banse Date: Sat, 16 Dec 2023 20:23:49 +0100 Subject: [PATCH] Update README and CLI colors (#251) * Update README.md * Fixed color --- README.md | 5 ++--- cli/commands/portfolio.go | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 30eac38d..b98d6276 100644 --- a/README.md +++ b/README.md @@ -105,9 +105,7 @@ mgo portfolio transactions create US0378331005 --portfolio-name bank/myportfolio When successful, this should print something like the following. -``` -Successfully created a buy transaction (1c12ac28dfbc5440) for security US09075V1026 in bank/myportfolio. -``` +Output of transactions create command The unique identifier (also called 'name') of the transaction can be used in other calls, e.g., to modify it. @@ -118,6 +116,7 @@ For a detailed list of all available commands see `mgo --help`. The CLI also supports (basic) shell completion. For details how to activate it, please see `mgo completion`. + # When is it finished? Since I am working on this in my spare time, it will probably take a while 😃. diff --git a/cli/commands/portfolio.go b/cli/commands/portfolio.go index 1e799fca..5cf063a1 100644 --- a/cli/commands/portfolio.go +++ b/cli/commands/portfolio.go @@ -192,9 +192,9 @@ func (cmd *CreateTransactionCmd) Run(s *cli.Session) error { fmt.Printf("Successfully created a %s transaction (%s) for security %s in %s.\n", color.CyanString(cmd.Type), - color.BlackString(res.Msg.Name), - color.BlueString(res.Msg.SecurityName), - color.BlueString(res.Msg.PortfolioName), + color.GreenString(res.Msg.Name), + color.CyanString(res.Msg.SecurityName), + color.CyanString(res.Msg.PortfolioName), ) return nil