summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Jäger <gitcommit@henk.geekmail.org>2023-12-30 12:49:59 +0100
committerHendrik Jäger <gitcommit@henk.geekmail.org>2023-12-30 12:49:59 +0100
commit9180963240c886173f8c84bc5949c4e8f9b59563 (patch)
treee9a24386e4db83fd0fae8fac74fc58264dbc0bfb
parent412523cf61e4be0d3bc20e77c680484455a5f385 (diff)
add function to list knot master zones
-rw-r--r--.zsh_functions/knot_master_zones1
1 files changed, 1 insertions, 0 deletions
diff --git a/.zsh_functions/knot_master_zones b/.zsh_functions/knot_master_zones
new file mode 100644
index 0000000..8770fe0
--- /dev/null
+++ b/.zsh_functions/knot_master_zones
@@ -0,0 +1 @@
+knotc zone-status +role | rg 'role: master' | sed 's/^\[\(.*\).\].*/\1/'