mirror of
https://github.com/turbot/steampipe.git
synced 2026-01-24 08:01:31 -05:00
14 lines
543 B
Go
14 lines
543 B
Go
package utils
|
|
|
|
// InteractiveExitStatus :: exist status from the interative prompt
|
|
//
|
|
// We exit go-prompt after every query (in order to manage the prompt history to only include complete queries)
|
|
// We therefore need to distinguish between:
|
|
//
|
|
// a user requested exit (ctrl+D or .exit) - indicated by a non-nil exit code and restart=false and a value ,
|
|
// go-prompt being terminated after a query completion and requiring restarting - indicated by restart=true
|
|
type InteractiveExitStatus struct {
|
|
// TODO remove altogether
|
|
ExitCode int
|
|
}
|