diff options
Diffstat (limited to 'cli/src/main.rs')
-rw-r--r-- | cli/src/main.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/src/main.rs b/cli/src/main.rs index ee10d17..794db9f 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -26,6 +26,11 @@ fn main() -> Result<(), Box<dyn std::error::Error>> { add_client(conn, &args.next() .expect("expected new client json data"))?; }, + "--edit-client" => { + let client_id = args.next().expect("missing client id").parse()?; + let json = args.next().expect("missing json data"); + Client::update(conn, client_id, &json)?; + }, &_ => { println!("Unknown command: {}", cmd); } |