systemd-run: add unit and invocation_id JSON output
This commit is contained in:
committed by
Luca Boccassi
parent
10ac85d0da
commit
fe5a6c47af
@@ -38,7 +38,7 @@ _systemd_run() {
|
||||
--unit -p --property --slice --description --service-type --uid --gid --nice --working-directory
|
||||
-E --setenv --on-active --on-boot --on-startup --on-unit-active --on-unit-inactive --on-calendar
|
||||
--path-property --socket-property --timer-property -H --host -M --machine --expand-environment
|
||||
--background
|
||||
--background --json
|
||||
)
|
||||
local OPTS="${opts_with_values[*]} --no-ask-password --scope -u --slice-inherit -r --remain-after-exit
|
||||
--send-sighup -d --same-dir -t --pty -P --pipe -S --shell -q --quiet --ignore-failure
|
||||
@@ -126,6 +126,11 @@ _systemd_run() {
|
||||
COMPREPLY=( $(compgen -W '$comps' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
--json)
|
||||
local comps='pretty short off'
|
||||
COMPREPLY=( $(compgen -W '$comps' -- "$cur") )
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
||||
COMPREPLY=( $(compgen -W '${OPTS[*]}' -- "$cur") )
|
||||
|
||||
Reference in New Issue
Block a user