diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) } |