From 2b060e55e538a70f0edcd25d9a4c491a03d50149 Mon Sep 17 00:00:00 2001 From: Gabriel Arakaki Giovanini Date: Mon, 28 Aug 2023 20:43:56 +0200 Subject: feat: Add link to the commit for a given format --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main.go') 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) } -- cgit v1.2.3