remove cli executable, add cli code

This commit is contained in:
yequari 2024-01-18 21:29:12 -07:00
parent 986dce3230
commit c82c681221
2 changed files with 21 additions and 0 deletions

BIN
cli

Binary file not shown.

View File

@ -1 +1,22 @@
package main package main
import (
"flag"
"fmt"
"git.32bit.cafe/yequari/rss-gen/rss"
)
func main() {
siteUrl := flag.String("url", "", "url of site")
siteTitle := flag.String("title", "", "site title")
siteDesc := flag.String("desc", "", "site description")
flag.Parse()
if *siteUrl == "" || *siteTitle == "" || *siteDesc == "" {
flag.PrintDefaults()
}
fmt.Println(rss.GenerateRss(*siteUrl, *siteTitle, *siteDesc, flag.Args()...))
}