diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-04-25 06:38:24 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-08-01 00:31:44 +0200 |
commit | 7d3ae6b21308ca8959d7c70b1f9fa9012db6ec15 (patch) | |
tree | 86dbc645619ff15578db959ccabd0f0b20a43440 /shell-completion | |
parent | logs-show: extend journal_get_boots() and friends to find invocation IDs (diff) | |
download | systemd-7d3ae6b21308ca8959d7c70b1f9fa9012db6ec15.tar.xz systemd-7d3ae6b21308ca8959d7c70b1f9fa9012db6ec15.zip |
journalctl: add --list-invocations command and -I/--invocation options
The --list-invocations command is similar to --list-boots, but shows
invocation IDs of specified unit. This should be useful when showing
a specific invocation of a unit.
The --invocation option is similar to --boot, but takes a invocation ID
or an offset. The -I option is equivalent to --invocation=0.
Diffstat (limited to 'shell-completion')
-rw-r--r-- | shell-completion/bash/journalctl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell-completion/bash/journalctl b/shell-completion/bash/journalctl index c79a38c352..5d1cc174c9 100644 --- a/shell-completion/bash/journalctl +++ b/shell-completion/bash/journalctl @@ -47,11 +47,11 @@ _journalctl() { --show-cursor --dmesg -k --pager-end -e -r --reverse --utc -x --catalog --no-full --force --dump-catalog --flush --rotate --sync --no-hostname -N --fields - --list-namespaces' + --list-namespaces --list-invocations -I' [ARG]='-b --boot -D --directory --file -F --field -t --identifier -T --exclude-identifier --facility -M --machine -o --output -u --unit --user-unit -p --priority --root --case-sensitive - --namespace' + --namespace --invocation' [ARGUNKNOWN]='-c --cursor --interval -n --lines -S --since -U --until --after-cursor --cursor-file --verify-key -g --grep --vacuum-size --vacuum-time --vacuum-files --output-fields' |