From c6157a630584240ece89ed52a62a517716342ae4 Mon Sep 17 00:00:00 2001 From: Maas Lalani Date: Sun, 11 Jun 2023 19:43:37 -0400 Subject: [PATCH] docs: change order --- README.md | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index f2dc787b807e6fb6fdeaf49f12ffc105a6165d4a..31fb5f1b9cc5fff186100d5f0e77d95fda70d1c0 100644 --- a/README.md +++ b/README.md @@ -7,9 +7,14 @@ Generate invoices from the command line. ## Text-based User Interface ```bash -invoice generate +invoice generate --from "Dream, Inc." --to "Imagine, Inc." \ + --item "Rubber Duck" --quantity 2 --rate 25 \ + --tax 0.13 --discount 0.15 \ + --note "For debugging purposes." ``` + + View the generated PDF at `invoice.pdf`, you can customize the output location with `--output`. @@ -19,28 +24,6 @@ open invoice.pdf invoice-preview -## Command Line Interface - -```bash -# Generate an invoice from information. -invoice generate --title "Invoice" \ - --id 2 \ - --logo ./images/logo.png \ - --from "Dream, Inc." \ - --to "Imagine, Inc." \ - --date "June 10, 2023" \ - --due "June 30, 2023" \ - --tax 0.13 \ - --discount 0.15 \ - --currency USD \ - --item "Rubber Duck" \ - --quantity 2 \ - --rate 25 \ - --notes "For debugging purposes." -``` - - - Save repeated information with environment variables: ```bash @@ -51,7 +34,6 @@ export INVOICE_TAX=0.13 export INVOICE_RATE=25 ``` - Generate new invoice: ```bash