Skip to content

Commit

Permalink
Update README and CLI colors (#251)
Browse files Browse the repository at this point in the history
* Update README.md

* Fixed color
  • Loading branch information
oxisto authored Dec 16, 2023
1 parent 33f409b commit e1dfcb8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
```
<img width="1114" alt="Output of transactions create command" src="https://github.com/oxisto/money-gopher/assets/12459061/cdb9304f-c805-4c84-9f4b-7b2a908e76f8">

The unique identifier (also called 'name') of the transaction can be used in
other calls, e.g., to modify it.
Expand All @@ -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 😃.
6 changes: 3 additions & 3 deletions cli/commands/portfolio.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e1dfcb8

Please sign in to comment.