Merge pull request #17772 from vrothberg/unhide-events-stream

podman events: unhide --stream
This commit is contained in:
OpenShift Merge Robot 2023-03-14 17:45:57 -04:00 committed by GitHub
commit a4537347c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -72,7 +72,7 @@ func eventsFlags(cmd *cobra.Command) {
flags.StringVar(&eventFormat, formatFlagName, "", "format the output using a Go template")
_ = cmd.RegisterFlagCompletionFunc(formatFlagName, common.AutocompleteFormat(&events.Event{}))
flags.BoolVar(&eventOptions.Stream, "stream", true, "stream new events; for testing only")
flags.BoolVar(&eventOptions.Stream, "stream", true, "stream events and do not exit when returning the last known event")
sinceFlagName := "since"
flags.StringVar(&eventOptions.Since, sinceFlagName, "", "show all events created since timestamp")
@ -83,8 +83,6 @@ func eventsFlags(cmd *cobra.Command) {
untilFlagName := "until"
flags.StringVar(&eventOptions.Until, untilFlagName, "", "show all events until timestamp")
_ = cmd.RegisterFlagCompletionFunc(untilFlagName, completion.AutocompleteNone)
_ = flags.MarkHidden("stream")
}
func eventsCmd(cmd *cobra.Command, _ []string) error {

View File

@ -128,6 +128,9 @@ Do not truncate the output (default *true*).
Show all events created since the given timestamp
#### **--stream**
Stream events and do not exit after reading the last known event (default *true*).
#### **--until**=*timestamp*