Skip to content

Commit

Permalink
livepeer_cli: add menu option to exit gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
emranemran committed May 27, 2022
1 parent 9f52b93 commit f8086d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG_PENDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
### Bug Fixes 🐞

#### CLI
- \#2438 Add new menu option to gracefully exit livepeer_cli (@emranemran)

#### General

Expand Down
4 changes: 4 additions & 0 deletions cmd/livepeer_cli/livepeer_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ func (w *wizard) initializeOptions() []wizardOpt {
{desc: "Sign a message", invoke: w.signMessage},
{desc: "Sign typed data", invoke: w.signTypedData},
{desc: "Vote in a poll", invoke: w.vote, orchestrator: true},
{desc: "Exit", invoke: func() {
fmt.Println("Goodbye, my friend")
os.Exit(0)
}},
}
return options
}
Expand Down

0 comments on commit f8086d4

Please sign in to comment.