~gpanders/gandi-cli

03b98192afa749adabfa2773d1f0e010a7a1b219 — Greg Anders 2 months ago eb7bf91
Return with error code if subcommand fails
1 files changed, 2 insertions(+), 1 deletions(-)

M src/gandi/console.py
M src/gandi/console.py => src/gandi/console.py +2 -1
@@ 17,7 17,8 @@ def run() -> None:
    config = read_config(args.config)

    auth = GandiAuth(config["api_key"])
    args.func(config, auth, args)
    ret = args.func(config, auth, args)
    sys.exit(0 if ret else 1)


def parse_args() -> argparse.Namespace: