hostnamectl: deprecate set-* methods and expose getters by only using nouns in commands

This commit is contained in:
Jakub Warczarek
2021-04-23 18:41:45 +00:00
committed by Lennart Poettering
parent c2503e359a
commit 572c55ee3c
4 changed files with 96 additions and 89 deletions

View File

@@ -38,9 +38,9 @@ _hostnamectl() {
local -A VERBS=(
[STANDALONE]='status'
[ICONS]='set-icon-name'
[NAME]='set-hostname set-deployment set-location'
[CHASSIS]='set-chassis'
[ICONS]='icon-name'
[NAME]='hostname deployment location'
[CHASSIS]='chassis'
)
for ((i=0; i < COMP_CWORD; i++)); do