From b456bc691259030acf65144a8f72484742a39319 Mon Sep 17 00:00:00 2001 From: samantha Date: Fri, 27 Mar 2026 10:44:37 +0000 Subject: [PATCH] Add Shell Commands --- Shell-Commands.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Shell-Commands.md diff --git a/Shell-Commands.md b/Shell-Commands.md new file mode 100644 index 0000000..53c1f67 --- /dev/null +++ b/Shell-Commands.md @@ -0,0 +1,42 @@ +

Shell Commands

+

The interactive shell runs in the same terminal as the HTTP server. Type help to see available commands at any time.

+

Reference

+ +Command | Description +-- | -- +add-company | Add a new company interactively +list-companies | List all companies with price and share count +add-currency | Add a new currency interactively +list-currency | List all currencies with their IDs +add-revenue | Add a revenue entry interactively +list-revenue | List revenue entries for a company/period +help | Show all available commands +exit | Quit + + +

Example Session

+
> add-currency
+Code: DKK
+Name: Danish Krone
+Currency added.
+
+> list-currency
+ID  Code  Name
+1   DKK   Danish Krone
+
+> add-company
+Name: Novo Nordisk
+Shares outstanding: 4442064180
+Price: 251.00
+Currency ID: 1
+Company added.
+
+> list-companies
+ID  Name           Price   Shares Outstanding  Currency
+1   Novo Nordisk   251.00  4442064180          1
+
+

Notes

+ \ No newline at end of file