.github/workflows | ||
examples | ||
.gitignore | ||
cli.go | ||
go.mod | ||
go.sum | ||
invoice.go | ||
LICENSE | ||
main.go | ||
Makefile | ||
README.md | ||
sample.go | ||
struct.go |
Invoice-generator
Invoice-generator is a simple tool for generating invoices in automatic mode. There is no need to fill out anything every month. You do it once and that's it.
It can be used for several projects at once, just create different configuration files and put them in different folders where you want to save invoices.
Installation
Binaries
Pre-built binaries.
Download the binary file for your platform, copy it to /usr/local/bin
, and
give execute permission. Here is an example of my configuration for Linux:
sudo wget https://8am.dev/enodllew/invoice-generator/releases/download/latest/invoice-generator.linux-amd64 -O /usr/local/bin/invoice-generator
sudo chmod +x /usr/local/bin/invoice-generator
And for MacOS:
sudo wget https://8am.dev/enodllew/invoice-generator/releases/download/latest/invoice-generator.darwin-arm64 -O /usr/local/bin/invoice-generator
sudo chmod +x /usr/local/bin/invoice-generator
Build from source
Clone the repo:
git clone https://8am.dev/enodllew/invoice-generator.git
Run the command:
make install
Configuration
When you first run generating an invoice without an invoice-generator.toml
file in the directory, the program will prompt a question:
The file invoice-generator.toml was not found in the current directory. Want to create it? (Y/n)
Type Y
, and then you need to open the created invoice-generator.toml
file
and fill in the parameters of your invoice there. This completes the
configuration setup, now you can generate invoices.
General usage
To generate a new invoice, use the command:
invoice-generator g
In addition, you can pass the date (month.year) of the desired service period as an argument as follows:
invoice-generator g 10.2023
You will get an invoice for the desirable period (previous month for example) with the correct dates for all presented fields.
Help information
$ invoice-generator
NAME:
invoice-generator - cli invoice assistant
USAGE:
invoice-generator [global options] command [command options] [arguments...]
VERSION:
0.9
DESCRIPTION:
This is a simple tool for generating invoices in automatic mode. There is no need to fill out anything every month. You do it once and that's it.
COMMANDS:
generate, g Generate a new invoice based on invoice-generator.toml information and current date.
Alternatively, you can pass the date (month.year) of the desired service period as anargument like this: invoice-generator g 10.2023
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help
--version, -v print the version
Invoice example:

Requiremrnts
There are no requirements and additional dependencies it will work on (Windows/Linux/MacOS).