From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <o.bektas@proxmox.com>
Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
 (No client certificate requested)
 by lists.proxmox.com (Postfix) with ESMTPS id 60391700B7
 for <pbs-devel@lists.proxmox.com>; Thu,  2 Sep 2021 13:48:34 +0200 (CEST)
Received: from firstgate.proxmox.com (localhost [127.0.0.1])
 by firstgate.proxmox.com (Proxmox) with ESMTP id 52FE61185B
 for <pbs-devel@lists.proxmox.com>; Thu,  2 Sep 2021 13:48:34 +0200 (CEST)
Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com
 [94.136.29.106])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
 (No client certificate requested)
 by firstgate.proxmox.com (Proxmox) with ESMTPS id AF48711850
 for <pbs-devel@lists.proxmox.com>; Thu,  2 Sep 2021 13:48:33 +0200 (CEST)
Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1])
 by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 72E1F4449F
 for <pbs-devel@lists.proxmox.com>; Thu,  2 Sep 2021 13:48:33 +0200 (CEST)
From: Oguz Bektas <o.bektas@proxmox.com>
To: pbs-devel@lists.proxmox.com
Date: Thu,  2 Sep 2021 13:48:23 +0200
Message-Id: <20210902114823.1437899-1-o.bektas@proxmox.com>
X-Mailer: git-send-email 2.30.2
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-SPAM-LEVEL: Spam detection results:  0
 AWL 1.199 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment
 SPF_HELO_NONE           0.001 SPF: HELO does not publish an SPF Record
 SPF_PASS               -0.001 SPF: sender matches SPF record
Subject: [pbs-devel] [PATCH v2 backup] zsh: fix completions
X-BeenThere: pbs-devel@lists.proxmox.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Proxmox Backup Server development discussion
 <pbs-devel.lists.proxmox.com>
List-Unsubscribe: <https://lists.proxmox.com/cgi-bin/mailman/options/pbs-devel>, 
 <mailto:pbs-devel-request@lists.proxmox.com?subject=unsubscribe>
List-Archive: <http://lists.proxmox.com/pipermail/pbs-devel/>
List-Post: <mailto:pbs-devel@lists.proxmox.com>
List-Help: <mailto:pbs-devel-request@lists.proxmox.com?subject=help>
List-Subscribe: <https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel>, 
 <mailto:pbs-devel-request@lists.proxmox.com?subject=subscribe>
X-List-Received-Date: Thu, 02 Sep 2021 11:48:34 -0000

seems like there was a typo in these from the beginning.

also fixes the wrong function name for proxmox-file-restore completion

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
---
v1->v2:
* fix the other typo i made in proxmox-backup-debug...


 zsh-completions/_pmt                    | 2 +-
 zsh-completions/_pmtx                   | 2 +-
 zsh-completions/_proxmox-backup-client  | 2 +-
 zsh-completions/_proxmox-backup-debug   | 2 +-
 zsh-completions/_proxmox-backup-manager | 2 +-
 zsh-completions/_proxmox-file-restore   | 6 +++---
 zsh-completions/_proxmox-tape           | 2 +-
 zsh-completions/_pxar                   | 2 +-
 8 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/zsh-completions/_pmt b/zsh-completions/_pmt
index dc418dfa..3fadd498 100644
--- a/zsh-completions/_pmt
+++ b/zsh-completions/_pmt
@@ -2,7 +2,7 @@
 
 function _pmt() {
     local cwords line point cmd curr prev
-    cworkds=${#words[@]}
+    cwords=${#words[@]}
     line=$words
     point=${#line}
     cmd=${words[1]}
diff --git a/zsh-completions/_pmtx b/zsh-completions/_pmtx
index 7269e82e..41fb52ef 100644
--- a/zsh-completions/_pmtx
+++ b/zsh-completions/_pmtx
@@ -2,7 +2,7 @@
 
 function _pmtx() {
     local cwords line point cmd curr prev
-    cworkds=${#words[@]}
+    cwords=${#words[@]}
     line=$words
     point=${#line}
     cmd=${words[1]}
diff --git a/zsh-completions/_proxmox-backup-client b/zsh-completions/_proxmox-backup-client
index 589ff7dd..f7e6f3f0 100644
--- a/zsh-completions/_proxmox-backup-client
+++ b/zsh-completions/_proxmox-backup-client
@@ -2,7 +2,7 @@
 
 function _proxmox-backup-client() {
     local cwords line point cmd curr prev
-    cworkds=${#words[@]}
+    cwords=${#words[@]}
     line=$words
     point=${#line}
     cmd=${words[1]}
diff --git a/zsh-completions/_proxmox-backup-debug b/zsh-completions/_proxmox-backup-debug
index d73c023f..caea4a04 100644
--- a/zsh-completions/_proxmox-backup-debug
+++ b/zsh-completions/_proxmox-backup-debug
@@ -2,7 +2,7 @@
 
 function _proxmox-backup-debug() {
     local cwords line point cmd curr prev
-    cworkds=${#words[@]}
+    cwords=${#words[@]}
     line=$words
     point=${#line}
     cmd=${words[1]}
diff --git a/zsh-completions/_proxmox-backup-manager b/zsh-completions/_proxmox-backup-manager
index 64a74af0..3b133796 100644
--- a/zsh-completions/_proxmox-backup-manager
+++ b/zsh-completions/_proxmox-backup-manager
@@ -2,7 +2,7 @@
 
 function _proxmox-backup-manager() {
     local cwords line point cmd curr prev
-    cworkds=${#words[@]}
+    cwords=${#words[@]}
     line=$words
     point=${#line}
     cmd=${words[1]}
diff --git a/zsh-completions/_proxmox-file-restore b/zsh-completions/_proxmox-file-restore
index e2e48c7a..98e7c2a3 100644
--- a/zsh-completions/_proxmox-file-restore
+++ b/zsh-completions/_proxmox-file-restore
@@ -1,8 +1,8 @@
-#compdef _proxmox-backup-client() proxmox-backup-client
+#compdef _proxmox-file-restore() proxmox-file-restore
 
-function _proxmox-backup-client() {
+function _proxmox-file-restore() {
     local cwords line point cmd curr prev
-    cworkds=${#words[@]}
+    cwords=${#words[@]}
     line=$words
     point=${#line}
     cmd=${words[1]}
diff --git a/zsh-completions/_proxmox-tape b/zsh-completions/_proxmox-tape
index d1490c85..88ebd56c 100644
--- a/zsh-completions/_proxmox-tape
+++ b/zsh-completions/_proxmox-tape
@@ -2,7 +2,7 @@
 
 function _proxmox-tape() {
     local cwords line point cmd curr prev
-    cworkds=${#words[@]}
+    cwords=${#words[@]}
     line=$words
     point=${#line}
     cmd=${words[1]}
diff --git a/zsh-completions/_pxar b/zsh-completions/_pxar
index 1b77a403..bf241d0d 100644
--- a/zsh-completions/_pxar
+++ b/zsh-completions/_pxar
@@ -2,7 +2,7 @@
 
 function _pxar() {
     local cwords line point cmd curr prev
-    cworkds=${#words[@]}
+    cwords=${#words[@]}
     line=$words
     point=${#line}
     cmd=${words[1]}
-- 
2.30.2