usage of ctx.StringSlice and cli.StringSliceFlag

rename param pages-branches with pages-branch
This commit is contained in:
Simon Vieille 2022-11-11 17:12:16 +01:00
parent 06bde50161
commit 5db46e99fe
No known key found for this signature in database
GPG key ID: 579388D585F70417
2 changed files with 7 additions and 6 deletions

View file

@ -15,11 +15,11 @@ var ServeFlags = []cli.Flag{
Value: "codeberg.page",
},
// Default branches to fetch assets from
&cli.StringFlag{
Name: "pages-branches",
Usage: "defines branches to fetch assets from",
&cli.StringSliceFlag{
Name: "pages-branch",
Usage: "define a branch to fetch assets from",
EnvVars: []string{"PAGES_BRANCHES"},
Value: "pages",
Value: &cli.StringSlice{},
},
// GiteaRoot specifies the root URL of the Gitea instance, without a trailing slash.
&cli.StringFlag{