From c37b2a04f487dccc00e646bb73194db6f8ad29b5 Mon Sep 17 00:00:00 2001 From: Min RK Date: Fri, 20 Sep 2024 14:08:52 +0200 Subject: [PATCH] default to more concise output in cli make raw, complete json opt-in instead of opt-out --- kbatch/kbatch/cli.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kbatch/kbatch/cli.py b/kbatch/kbatch/cli.py index 0ca05a7..7bb2e8b 100644 --- a/kbatch/kbatch/cli.py +++ b/kbatch/kbatch/cli.py @@ -86,7 +86,7 @@ def delete_cronjob(cronjob_name, kbatch_url, token): "--output", help="output format", type=click.Choice(["json", "table"]), - default="json", + default="table", ) def list_cronjobs(kbatch_url, token, output): """List all the cronjobs.""" @@ -118,7 +118,7 @@ def list_cronjobs(kbatch_url, token, output): @click.option( "-o", "--output", - default="json", + default="name", help="Output format.", type=click.Choice(["json", "name"]), ) @@ -209,7 +209,7 @@ def delete_job(job_name, kbatch_url, token): "--output", help="output format", type=click.Choice(["json", "table"]), - default="json", + default="table", ) def list_jobs(kbatch_url, token, output): """List all the jobs.""" @@ -240,7 +240,7 @@ def list_jobs(kbatch_url, token, output): @click.option( "-o", "--output", - default="json", + default="name", help="Output format.", type=click.Choice(["json", "name"]), ) @@ -310,7 +310,7 @@ def pod(): "--output", help="output format", type=click.Choice(["json", "table", "name"]), - default="json", + default="table", ) def list_pods(kbatch_url, token, job_name, output): """List all the pods."""