Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing events to podman-events man page #13921

Merged
merged 1 commit into from
Apr 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cmd/podman/common/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -1057,10 +1057,10 @@ func getStructFields(f reflect.Value, prefix string) []string {
// -> "container=", "event=", "image=", "pod=", "volume=", "type="
func AutocompleteEventFilter(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
eventTypes := func(_ string) ([]string, cobra.ShellCompDirective) {
return []string{"attach", "checkpoint", "cleanup", "commit", "create", "exec",
"export", "import", "init", "kill", "mount", "pause", "prune", "remove",
"restart", "restore", "start", "stop", "sync", "unmount", "unpause",
"pull", "push", "save", "tag", "untag", "refresh", "renumber",
return []string{"attach", "checkpoint", "cleanup", "commit", "connect", "create", "disconnect", "exec",
"exec_died", "exited", "export", "import", "init", "kill", "loadFromArchive", "mount", "pause",
"prune", "pull", "push", "refresh", "remove", "rename", "renumber", "restart", "restore", "save",
"start", "stop", "sync", "tag", "unmount", "unpause", "untag",
}, cobra.ShellCompDirectiveNoFileComp
}
kv := keyValueCompletion{
Expand Down
9 changes: 8 additions & 1 deletion docs/source/markdown/podman-events.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@ The *container* event type will report the follow statuses:
* checkpoint
* cleanup
* commit
* connect
* create
* disconnect
* exec
* exec_died
* exited
* export
* import
* init
Expand All @@ -32,6 +36,7 @@ The *container* event type will report the follow statuses:
* pause
* prune
* remove
* rename
* restart
* restore
* start
Expand All @@ -50,12 +55,14 @@ The *pod* event type will report the follow statuses:
* unpause

The *image* event type will report the following statuses:
* prune
* loadFromArchive,
* mount
* pull
* push
* remove
* save
* tag
* unmount
* untag

The *system* type will report the following statuses:
Expand Down