mirror of
https://github.com/systemd/systemd
synced 2026-04-08 08:04:50 +02:00
Compare commits
No commits in common. "3da361064bf550d1818c7cd800a514326058e5f2" and "91ee7c5ebda88efe112d432d63cb5216806c828a" have entirely different histories.
3da361064b
...
91ee7c5ebd
@ -32,7 +32,6 @@ __get_machines() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
__syslog_priorities=(emerg alert crit err warning notice info debug)
|
__syslog_priorities=(emerg alert crit err warning notice info debug)
|
||||||
__syslog_facilities=(kern user mail daemon auth syslog lpr news uucp cron authpriv ftp local0 local1 local2 local3 local4 local5 local6 local7)
|
|
||||||
|
|
||||||
_journalctl() {
|
_journalctl() {
|
||||||
local field_vals= cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
|
local field_vals= cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||||
@ -45,7 +44,7 @@ _journalctl() {
|
|||||||
--show-cursor --dmesg -k --pager-end -e -r --reverse
|
--show-cursor --dmesg -k --pager-end -e -r --reverse
|
||||||
--utc -x --catalog --no-full --force --dump-catalog
|
--utc -x --catalog --no-full --force --dump-catalog
|
||||||
--flush --rotate --sync --no-hostname -N --fields'
|
--flush --rotate --sync --no-hostname -N --fields'
|
||||||
[ARG]='-b --boot -D --directory --file -F --field -t --identifier --facility
|
[ARG]='-b --boot -D --directory --file -F --field -t --identifier
|
||||||
-M --machine -o --output -u --unit --user-unit -p --priority
|
-M --machine -o --output -u --unit --user-unit -p --priority
|
||||||
--root --case-sensitive'
|
--root --case-sensitive'
|
||||||
[ARGUNKNOWN]='-c --cursor --interval -n --lines -S --since -U --until
|
[ARGUNKNOWN]='-c --cursor --interval -n --lines -S --since -U --until
|
||||||
@ -82,9 +81,6 @@ _journalctl() {
|
|||||||
--machine|-M)
|
--machine|-M)
|
||||||
comps=$( __get_machines )
|
comps=$( __get_machines )
|
||||||
;;
|
;;
|
||||||
--facility)
|
|
||||||
comps=${__syslog_facilities[*]}
|
|
||||||
;;
|
|
||||||
--priority|-p)
|
--priority|-p)
|
||||||
comps=${__syslog_priorities[*]}
|
comps=${__syslog_priorities[*]}
|
||||||
compopt -o nosort
|
compopt -o nosort
|
||||||
|
|||||||
@ -56,13 +56,6 @@ _journalctl_boots() {
|
|||||||
"bootid:boot ids:compadd -a _bootid"
|
"bootid:boot ids:compadd -a _bootid"
|
||||||
}
|
}
|
||||||
|
|
||||||
(( $+functions[_journalctl_facilities] )) ||
|
|
||||||
_journalctl_facilities() {
|
|
||||||
local -a _journalctl_facilities
|
|
||||||
_journalctl_facilities=(kern user mail daemon auth syslog lpr news uucp cron authpriv ftp local0 local1 local2 local3 local4 local5 local6 local7)
|
|
||||||
_describe 'possible values' _journalctl_facilities
|
|
||||||
}
|
|
||||||
|
|
||||||
# Build arguments for "journalctl" to be used in completion.
|
# Build arguments for "journalctl" to be used in completion.
|
||||||
# Use both --user and --system modes, they are not exclusive.
|
# Use both --user and --system modes, they are not exclusive.
|
||||||
local -a _modes; _modes=(--user --system)
|
local -a _modes; _modes=(--user --system)
|
||||||
@ -110,8 +103,7 @@ _arguments -s \
|
|||||||
{-u+,--unit=}'[Show data only from the specified unit]:units:_journalctl_field_values _SYSTEMD_UNIT' \
|
{-u+,--unit=}'[Show data only from the specified unit]:units:_journalctl_field_values _SYSTEMD_UNIT' \
|
||||||
'--user-unit=[Show data only from the specified user session unit]:units:_journalctl_field_values USER_UNIT' \
|
'--user-unit=[Show data only from the specified user session unit]:units:_journalctl_field_values USER_UNIT' \
|
||||||
{-p+,--priority=}'[Show only messages within the specified priority range]:priority:_journalctl_field_values PRIORITY' \
|
{-p+,--priority=}'[Show only messages within the specified priority range]:priority:_journalctl_field_values PRIORITY' \
|
||||||
'--facility=[Filter messages by facility]:facility:_journalctl_facilities' \
|
{-t+,--identifier=}'[Show only messages with the specified syslog identifier]:identifier:_journalctl_field_values SYSLOG_IDENTIFIER' \
|
||||||
{-t+,--identifier=}'[Filter messages by syslog identifier]:identifier:_journalctl_field_values SYSLOG_IDENTIFIER' \
|
|
||||||
{-c+,--cursor=}'[Start showing entries from the specified cursor]:cursors:_journalctl_field_values __CURSORS' \
|
{-c+,--cursor=}'[Start showing entries from the specified cursor]:cursors:_journalctl_field_values __CURSORS' \
|
||||||
'--cursor-file=[Show entries using cursor store in file]:file:_files' \
|
'--cursor-file=[Show entries using cursor store in file]:file:_files' \
|
||||||
'--after-cursor=[Start showing entries from after the specified cursor]:cursors:_journalctl_field_values __CURSORS' \
|
'--after-cursor=[Start showing entries from after the specified cursor]:cursors:_journalctl_field_values __CURSORS' \
|
||||||
|
|||||||
@ -2129,7 +2129,7 @@ bool unit_is_bound_by_inactive(Unit *u, Unit **ret_culprit) {
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (UNIT_IS_INACTIVE_OR_FAILED(unit_active_state(other))) {
|
if (UNIT_IS_INACTIVE_OR_FAILED(unit_active_state(other))) {
|
||||||
if (ret_culprit)
|
if (*ret_culprit)
|
||||||
*ret_culprit = other;
|
*ret_culprit = other;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user