@@ -10,20 +10,28 @@ To run this, you'll need Go installed. With that, you can compile the project:
go get github.com/writeas/text-pic/cmd/wfgraphic-cli
```
Then you can run `wfgraphic-cli` with the options below. The actual content of the graphic is read from `stdin`, which you can either supply when prompted to, or pipe in (e.g. `cat quote.txt | ./wfgraphic-cli`).
Then you can run `wfgraphic-cli` with the options below.
```
Usage of wfgraphic-cli:
-font string
Post font (options: "serif", "sans", "mono") (default "serif")
size = flag.String("size", "1024", "Image size, either a single number for a square (e.g. \"900\") or a combined width and height (e.g. \"1080x1920\")")
)
@@ -35,6 +35,11 @@ func main() {
flag.Parse()
// Validate input
if *instance == "" {
log.Info("Aborting. Instance name (-i instance.tld) is required")