Skip to content

ohhmkar/chemcli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chemcli

CLI tool for managing pharmacy/medicine stock.

Commands

Add Medicine

Adds new medicine to the stock or updates existing stock quantity.

chemcli add -n <name> -q <quantity> -e <expiry_date>
  • -n, --name: Medicine name (required)
  • -q, --qty: Medicine quantity (required)
  • -e, --expiry: Medicine expiry date in YYYY-MM-DD format (optional)

List Stock

Lists all available medicines in the database.

chemcli list

Search Medicine

Searches for a medicine by name.

chemcli search <medicine_name>

Sell Medicine

Removes the specified quantity of a medicine from the stock.

chemcli sell -n <name> -q <quantity>
  • -n, --name: Medicine name
  • -q, --qty: Quantity to sell

Low Stock Alert

Lists medicines that have a quantity at or below a specified threshold.

chemcli lowStock -t <threshold>
  • -t, --threshold: Quantity threshold to check against

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages