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