diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-11-15 13:50:15 +0100 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-11-15 14:03:11 +0100 |
commit | 992ac5301fc8727d83017b242af2df9895eebfcc (patch) | |
tree | 4fdd21a61b54d368540d6ef65258f97473051381 /src/client.c | |
parent | client: print the server response (diff) | |
download | cimple-992ac5301fc8727d83017b242af2df9895eebfcc.tar.gz cimple-992ac5301fc8727d83017b242af2df9895eebfcc.zip |
implement a command to list runs
Diffstat (limited to 'src/client.c')
-rw-r--r-- | src/client.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client.c b/src/client.c index 1594014..cb10167 100644 --- a/src/client.c +++ b/src/client.c @@ -53,13 +53,17 @@ static int make_request(struct jsonrpc_request **request, int argc, const char * return -1; struct run *run = NULL; - int ret = run_create(&run, 0, argv[1], argv[2]); + int ret = run_queued(&run, argv[1], argv[2]); if (ret < 0) return ret; ret = request_create_queue_run(request, run); run_destroy(run); return ret; + } else if (!strcmp(argv[0], CMD_GET_RUNS)) { + if (argc != 1) + return -1; + return request_create_get_runs(request); } return -1; |