diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index 89e38ad36f..1282a7125b 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -19,6 +19,7 @@ ### Bug Fixes 🐞 #### CLI +- \#2438 Add new menu option to gracefully exit livepeer_cli (@emranemran) #### General diff --git a/cmd/livepeer_cli/livepeer_cli.go b/cmd/livepeer_cli/livepeer_cli.go index ef17c93565..9ade1d992a 100644 --- a/cmd/livepeer_cli/livepeer_cli.go +++ b/cmd/livepeer_cli/livepeer_cli.go @@ -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 }