Add SPDX license headers to shell completion scripts

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2017-11-18 18:21:19 +01:00
parent d9215cd838
commit 7059062c2f
48 changed files with 48 additions and 0 deletions

View File

@ -1,4 +1,5 @@
# bootctl(1) completion -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#

View File

@ -1,4 +1,5 @@
# busctl(1) completion -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#

View File

@ -1,4 +1,5 @@
# coredumpctl(1) completion -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#

View File

@ -1,4 +1,5 @@
# hostnamectl(1) completion -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#

View File

@ -1,4 +1,5 @@
# journalctl(1) completion -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#

View File

@ -1,4 +1,5 @@
# kernel-install(8) completion -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#

View File

@ -1,4 +1,5 @@
# localectl(1) completion -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#

View File

@ -1,4 +1,5 @@
# loginctl(1) completion -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#

View File

@ -1,4 +1,5 @@
# machinectl(1) completion -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#

View File

@ -1,4 +1,5 @@
# networkctl(1) completion -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#

View File

@ -1,4 +1,5 @@
# systemctl(1) completion -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#

View File

@ -1,4 +1,5 @@
# systemd-analyze(1) completion -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#

View File

@ -1,4 +1,5 @@
# systemd-cat(1) completion -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#

View File

@ -1,4 +1,5 @@
# systemd-cgls(1) completion -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#

View File

@ -1,4 +1,5 @@
# systemd-cgtop(1) completion -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#

View File

@ -1,4 +1,5 @@
# systemd-delta(1) completion -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#

View File

@ -1,4 +1,5 @@
# systemd-detect-virt(1) completion -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#

View File

@ -1,4 +1,5 @@
# systemd-nspawn(1) completion -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#

View File

@ -1,4 +1,5 @@
# systemd-path(1) completion -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#

View File

@ -1,4 +1,5 @@
# systemd-resolve(1) completion -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#

View File

@ -1,4 +1,5 @@
# systemd-run(1) completion -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#

View File

@ -1,4 +1,5 @@
# timedatectl(1) completion -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#

View File

@ -1,4 +1,5 @@
# udevadm(8) completion -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#

View File

@ -1,4 +1,5 @@
#compdef bootctl
# SPDX-License-Identifier: LGPL-2.1+
(( $+functions[_bootctl_command] )) || _bootctl_command()
{

View File

@ -1,4 +1,5 @@
#compdef busctl
# SPDX-License-Identifier: LGPL-2.1+
# busctl(1) completion -*- shell-script -*-
#

View File

@ -1,4 +1,5 @@
#compdef coredumpctl
# SPDX-License-Identifier: LGPL-2.1+
_coredumpctl_command(){
local -a _coredumpctl_cmds

View File

@ -1,4 +1,5 @@
#compdef hostnamectl
# SPDX-License-Identifier: LGPL-2.1+
_hostnamectl_set-hostname() {
if (( CURRENT <= 3 )); then

View File

@ -1,4 +1,5 @@
#compdef journalctl
# SPDX-License-Identifier: LGPL-2.1+
_list_fields() {
local -a journal_fields

View File

@ -1,4 +1,5 @@
#compdef kernel-install
# SPDX-License-Identifier: LGPL-2.1+
_images(){
if [[ "$words[2]" == "remove" ]]; then

View File

@ -1,4 +1,5 @@
#compdef localectl
# SPDX-License-Identifier: LGPL-2.1+
_localectl_set-locale() {
local -a _locales locale_fields

View File

@ -1,4 +1,5 @@
#compdef loginctl
# SPDX-License-Identifier: LGPL-2.1+
_loginctl_all_sessions() {
local session description

View File

@ -1,4 +1,5 @@
#compdef machinectl
# SPDX-License-Identifier: LGPL-2.1+
__get_available_machines () {
machinectl --no-legend list-images | {while read -r a b; do echo $a; done;}

View File

@ -1,4 +1,5 @@
#compdef networkctl
# SPDX-License-Identifier: LGPL-2.1+
_networkctl_command(){
local -a _networkctl_cmds

View File

@ -1,4 +1,5 @@
#autoload
# SPDX-License-Identifier: LGPL-2.1+
_alternative \
'users-hosts:: _user_at_host' \

View File

@ -1,4 +1,5 @@
#autoload
# SPDX-License-Identifier: LGPL-2.1+
__get_machines () {
machinectl --full --no-legend --no-pager list | {while read -r a b; do echo $a; done;};
}

View File

@ -1,4 +1,5 @@
#autoload
# SPDX-License-Identifier: LGPL-2.1+
local -a _output_opts
_output_opts=(short short-full short-iso short-iso-precise short-precise short-monotonic short-unix verbose export json json-pretty json-sse cat)

View File

@ -1,4 +1,5 @@
#autoload
# SPDX-License-Identifier: LGPL-2.1+
_sd_unit_files() {
local files expl

View File

@ -1,4 +1,5 @@
#compdef systemctl
# SPDX-License-Identifier: LGPL-2.1+
(( $+functions[_systemctl_command] )) || _systemctl_command()
{

View File

@ -1,4 +1,5 @@
#compdef systemd-cat systemd-ask-password systemd-cgls systemd-cgtop systemd-detect-virt systemd-machine-id-setup systemd-notify systemd-tty-ask-password-agent
# SPDX-License-Identifier: LGPL-2.1+
local curcontext="$curcontext" state lstate line
case "$service" in

View File

@ -1,4 +1,5 @@
#compdef systemd-analyze
# SPDX-License-Identifier: LGPL-2.1+
_systemd_analyze_set-log-level() {
local -a _levels

View File

@ -1,4 +1,5 @@
#compdef systemd-delta
# SPDX-License-Identifier: LGPL-2.1+
_delta_type() {
local -a _delta_types

View File

@ -1,4 +1,5 @@
#compdef systemd-inhibit
# SPDX-License-Identifier: LGPL-2.1+
_systemd_inhibit_command(){
if (( CURRENT == 1 )); then

View File

@ -1,4 +1,5 @@
#compdef systemd-nspawn
# SPDX-License-Identifier: LGPL-2.1+
_nspawn-caps(){
local -a _caps

View File

@ -1,4 +1,5 @@
#compdef systemd-resolve
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.

View File

@ -1,4 +1,5 @@
#compdef systemd-run
# SPDX-License-Identifier: LGPL-2.1+
__systemctl() {
local -a _modes

View File

@ -1,4 +1,5 @@
#compdef systemd-tmpfiles
# SPDX-License-Identifier: LGPL-2.1+
_arguments \
{-h,--help}'[Show help]' \

View File

@ -1,4 +1,5 @@
#compdef timedatectl
# SPDX-License-Identifier: LGPL-2.1+
_timedatectl_set-timezone(){
local -a _timezones

View File

@ -1,4 +1,5 @@
#compdef udevadm
# SPDX-License-Identifier: LGPL-2.1+
_udevadm_info(){
_arguments \