From 78b6d169a3ad05b009579223cff38ea66c9a9e2f Mon Sep 17 00:00:00 2001 From: Digital Studium Date: Sun, 7 Apr 2024 19:23:45 +0300 Subject: [PATCH] Disable batcat headers --- kls | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kls b/kls index 7ee56b4..8684d48 100755 --- a/kls +++ b/kls @@ -63,7 +63,7 @@ def main(stdscr): namespace = menus[0].rows[menus[0].row] api_resource = menus[1].rows[menus[1].row] resource = menus[2].rows[menus[2].row] - process = subprocess.call(f"kubectl -n {namespace} get {api_resource} {resource} -o yaml | batcat -l yaml --paging always", shell=True) + process = subprocess.call(f"kubectl -n {namespace} get {api_resource} {resource} -o yaml | batcat -l yaml --paging always --style numbers", shell=True) stdscr = curses.initscr() stdscr.refresh() curses.noecho() @@ -83,7 +83,7 @@ def main(stdscr): namespace = menus[0].rows[menus[0].row] api_resource = menus[1].rows[menus[1].row] resource = menus[2].rows[menus[2].row] - process = subprocess.call(f"kubectl -n {namespace} describe {api_resource} {resource} | batcat -l yaml --paging always", shell=True) + process = subprocess.call(f"kubectl -n {namespace} describe {api_resource} {resource} | batcat -l yaml --paging always --style numbers", shell=True) stdscr = curses.initscr() stdscr.refresh() curses.noecho() @@ -103,7 +103,7 @@ def main(stdscr): namespace = menus[0].rows[menus[0].row] api_resource = menus[1].rows[menus[1].row] resource = menus[2].rows[menus[2].row] - process = subprocess.call(f"kubectl -n {namespace} logs {resource} | batcat -l log --paging always", shell=True) + process = subprocess.call(f"kubectl -n {namespace} logs {resource} | batcat -l log --paging always --style numbers", shell=True) stdscr = curses.initscr() stdscr.refresh() curses.noecho()