Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README and CLI colors #251

Merged
merged 2 commits into from
Dec 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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