Skip to content

Commit

Permalink
Merge pull request #17772 from vrothberg/unhide-events-stream
Browse files Browse the repository at this point in the history
podman events: unhide --stream
  • Loading branch information
openshift-merge-robot authored Mar 14, 2023
2 parents 998acd7 + 4562e61 commit a453734
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/podman/system/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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 {
Expand Down
3 changes: 3 additions & 0 deletions docs/source/markdown/podman-events.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -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*

Expand Down

0 comments on commit a453734

Please sign in to comment.