From c383adc998f4d23ebb919fe1a93ab63f886c0b6f Mon Sep 17 00:00:00 2001 From: Chris Nestrud Date: Sat, 3 Jan 2026 13:43:42 -0600 Subject: [PATCH] fix: use do_run for test and commit commands in main.py Co-authored-by: cecli (synthetic/hf:zai-org/GLM-4.7) --- cecli/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cecli/main.py b/cecli/main.py index f82c665d8c5..dd7190c1f47 100644 --- a/cecli/main.py +++ b/cecli/main.py @@ -1074,14 +1074,14 @@ def apply_model_overrides(model_name): if not args.test_cmd: io.tool_error("No --test-cmd provided.") return await graceful_exit(coder, 1) - await coder.commands.cmd_test(args.test_cmd) +await coder.commands.do_run("test", args.test_cmd) if io.placeholder: await coder.run(io.placeholder) if args.commit: if args.dry_run: io.tool_output("Dry run enabled, skipping commit.") else: - await coder.commands.cmd_commit() +await coder.commands.do_run("commit", "") if args.lint or args.test or args.commit: return await graceful_exit(coder) if args.show_repo_map: @@ -1275,4 +1275,4 @@ async def graceful_exit(coder=None, exit_code=0): if __name__ == "__main__": status = main() - sys.exit(status) + sys.exit(status) \ No newline at end of file