From dc634287aa1842c1edbf72d059b43c0f34e7f6e7 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Tue, 16 Aug 2022 15:57:09 +0200 Subject: [PATCH] add pages-branches param --- cmd/flags.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/flags.go b/cmd/flags.go index 8ac09ec..50bf6b3 100644 --- a/cmd/flags.go +++ b/cmd/flags.go @@ -14,6 +14,13 @@ var ServeFlags = []cli.Flag{ EnvVars: []string{"PAGES_DOMAIN"}, Value: "codeberg.page", }, + // Default branches to fetch assets from + &cli.StringFlag{ + Name: "pages-branches", + Usage: "defines branches to fetch assets from", + EnvVars: []string{"PAGES_BRANCHES"}, + Value: "pages", + }, // GiteaRoot specifies the root URL of the Gitea instance, without a trailing slash. &cli.StringFlag{ Name: "gitea-root",