summaryrefslogtreecommitdiff
path: root/shell-completion
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-02-24 21:35:38 -0500
committerGitHub <noreply@github.com>2017-02-24 21:35:38 -0500
commit5a36dddca383ad80fb6eddf7c9cf3347a547ffe0 (patch)
treebb34b594f8fefa72f0c71a40266dac08b9c7d70a /shell-completion
parent78e4f19ebc4c128ec72d732068df5b6f8a0e122d (diff)
parent15710d44791f8f56dd688cff6c597622bbd70b3c (diff)
Merge pull request #5429 from GiedriusS/master
coredumpctl: implement --since/--until (-S/-U) for info/list verbs
Diffstat (limited to 'shell-completion')
-rw-r--r--shell-completion/bash/coredumpctl2
-rw-r--r--shell-completion/zsh/_coredumpctl2
2 files changed, 3 insertions, 1 deletions
diff --git a/shell-completion/bash/coredumpctl b/shell-completion/bash/coredumpctl
index d34f89e2bb..87fe473e09 100644
--- a/shell-completion/bash/coredumpctl
+++ b/shell-completion/bash/coredumpctl
@@ -38,7 +38,7 @@ _coredumpctl() {
local i verb comps
local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
local OPTS='-h --help --version --no-pager --no-legend -o --output -F --field -1
- -r --reverse'
+ -r --reverse -S --since -U --until'
local -A VERBS=(
[LIST]='list'
diff --git a/shell-completion/zsh/_coredumpctl b/shell-completion/zsh/_coredumpctl
index 64b44c1214..e469bca958 100644
--- a/shell-completion/zsh/_coredumpctl
+++ b/shell-completion/zsh/_coredumpctl
@@ -32,6 +32,8 @@ _arguments \
{-o+,--output=}'[Write output to FILE]:output file:_files' \
{-F+,--field=}'[Show field in list output]:field' \
'-1[Show information about most recent entry only]' \
+ {-S,--since}'[Print entries since the specified date]' \
+ {-U,--until}'[Print entries until the specified date]' \
{-r,--reverse}'[Show the newest entries first]' \
'--no-pager[Do not pipe output into a pager]' \
'--no-legend[Do not print the column headers]' \