From 4b14f87cc80e7cfb78480644281022296973bc66 Mon Sep 17 00:00:00 2001 From: jvech Date: Wed, 19 Jun 2024 09:15:10 -0500 Subject: feat: agent deletion and name update done --- README.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 2f3b57f..159733d 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Commands: init Initialize Database register Register a transaction view View Registered data - add Add a new agent to lend or pay + agent Add, update or remove an agent help Print this message or the help of the given subcommand(s) Options: @@ -36,7 +36,7 @@ CREATE TABLE Registers ( register_date INTEGER NOT NULL, amount INTEGER NOT NULL, note TEXT, - FOREIGN KEY(agent_id) REFERENCES Agents(id) + FOREIGN KEY(agent_id) REFERENCES Agents(id) ON DELETE CASCADE ) ``` @@ -48,7 +48,17 @@ debt init Add a new debtor: ``` -debt add 'Jane Doe' +debt agent -a 'Jane Doe' +``` + +Delete a created agent +``` +debt agent -d 'Jane Doe' +``` + +Update a created agent: +``` +debt agent 'Jane Doe' -u 'Joe Doe' ``` Borrow 1000 (dollars, euros or whatever) to Jane Doe: -- cgit v1.2.3-70-g09d2