aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.go b/main.go
index cfc56c4..3488c32 100644
--- a/main.go
+++ b/main.go
@@ -30,6 +30,7 @@ func fechIndex(url string) (io.ReadCloser, error) {
func main() {
url := flag.String("url", "", "Url to the APKINDEX.tar.gz")
output := flag.String("output", "index.md", "Output path")
+ repositoryFormat := flag.String("repository-format", "https://git.sr.ht/~gabrielgio/apkbuilds/tree/%s/item/apks/%s", "Template to build repository link")
flag.Parse()
tarStream, err := fechIndex(*url)
@@ -78,5 +79,5 @@ func main() {
panic("Error opening output file: " + err.Error())
}
- templates.WriteMarkdownTemplate(file, entries)
+ templates.WriteMarkdownTemplate(file, entries, *repositoryFormat)
}